/external/wpa_supplicant_8/src/ap/ |
D | preauth_auth.c | 48 struct l2_ethhdr *ethhdr; in rsn_preauth_receive() local 52 if (len < sizeof(*ethhdr) + sizeof(*hdr)) { in rsn_preauth_receive() 58 ethhdr = (struct l2_ethhdr *) buf; in rsn_preauth_receive() 59 hdr = (struct ieee802_1x_hdr *) (ethhdr + 1); in rsn_preauth_receive() 61 if (os_memcmp(ethhdr->h_dest, hapd->own_addr, ETH_ALEN) != 0) { in rsn_preauth_receive() 63 MACSTR, MAC2STR(ethhdr->h_dest)); in rsn_preauth_receive() 67 sta = ap_get_sta(hapd, ethhdr->h_source); in rsn_preauth_receive() 74 sta = ap_sta_add(hapd, ethhdr->h_source); in rsn_preauth_receive() 92 ieee802_1x_receive(hapd, ethhdr->h_source, (u8 *) (ethhdr + 1), in rsn_preauth_receive() 93 len - sizeof(*ethhdr)); in rsn_preauth_receive() [all …]
|
D | eth_p_oui.c | 55 const struct l2_ethhdr *ethhdr; in eth_p_rx() local 57 if (len < sizeof(*ethhdr) + sizeof(global_oui) + 1) { in eth_p_rx() 62 ethhdr = (struct l2_ethhdr *) buf; in eth_p_rx() 64 buf += sizeof(*ethhdr); in eth_p_rx() 65 len -= sizeof(*ethhdr); in eth_p_rx() 78 eth_p_oui_deliver(receiver, ethhdr->h_source, ethhdr->h_dest, in eth_p_rx() 168 struct l2_ethhdr *ethhdr; in eth_p_oui_send() local 170 packet_len = sizeof(*ethhdr) + sizeof(global_oui) + 1 + len; in eth_p_oui_send() 176 ethhdr = (struct l2_ethhdr *) packet; in eth_p_oui_send() 177 os_memcpy(ethhdr->h_source, src_addr, ETH_ALEN); in eth_p_oui_send() [all …]
|
D | wpa_auth_glue.c | 1166 struct l2_ethhdr *ethhdr; in hostapd_rrb_receive() local 1167 if (len < sizeof(*ethhdr)) in hostapd_rrb_receive() 1169 ethhdr = (struct l2_ethhdr *) buf; in hostapd_rrb_receive() 1171 MACSTR, MAC2STR(ethhdr->h_source), MAC2STR(ethhdr->h_dest)); in hostapd_rrb_receive() 1172 if (!is_multicast_ether_addr(ethhdr->h_dest) && in hostapd_rrb_receive() 1173 os_memcmp(hapd->own_addr, ethhdr->h_dest, ETH_ALEN) != 0) in hostapd_rrb_receive() 1175 wpa_ft_rrb_rx(hapd->wpa_auth, ethhdr->h_source, buf + sizeof(*ethhdr), in hostapd_rrb_receive() 1176 len - sizeof(*ethhdr)); in hostapd_rrb_receive()
|
/external/wpa_supplicant_8/src/l2_packet/ |
D | l2_packet_pcap.c | 124 struct l2_ethhdr *ethhdr; in l2_packet_receive() local 130 if (packet == NULL || hdr.caplen < sizeof(*ethhdr)) in l2_packet_receive() 133 ethhdr = (struct l2_ethhdr *) packet; in l2_packet_receive() 135 buf = (unsigned char *) ethhdr; in l2_packet_receive() 138 buf = (unsigned char *) (ethhdr + 1); in l2_packet_receive() 139 len = hdr.caplen - sizeof(*ethhdr); in l2_packet_receive() 141 l2->rx_callback(l2->rx_callback_ctx, ethhdr->h_source, buf, len); in l2_packet_receive() 151 struct l2_ethhdr *ethhdr; in l2_packet_receive_cb() local 155 if (pkt_data == NULL || hdr->caplen < sizeof(*ethhdr)) in l2_packet_receive_cb() 158 ethhdr = (struct l2_ethhdr *) pkt_data; in l2_packet_receive_cb() [all …]
|
D | l2_packet_freebsd.c | 81 struct l2_ethhdr *ethhdr; in l2_packet_receive() local 87 if (packet == NULL || hdr.caplen < sizeof(*ethhdr)) in l2_packet_receive() 90 ethhdr = (struct l2_ethhdr *) packet; in l2_packet_receive() 92 buf = (unsigned char *) ethhdr; in l2_packet_receive() 95 buf = (unsigned char *) (ethhdr + 1); in l2_packet_receive() 96 len = hdr.caplen - sizeof(*ethhdr); in l2_packet_receive() 98 l2->rx_callback(l2->rx_callback_ctx, ethhdr->h_source, buf, len); in l2_packet_receive()
|
D | l2_packet_winpcap.c | 106 struct l2_ethhdr *ethhdr; in l2_packet_receive_cb() local 108 if (pkt_data == NULL || hdr->caplen < sizeof(*ethhdr)) in l2_packet_receive_cb() 111 ethhdr = (struct l2_ethhdr *) pkt_data; in l2_packet_receive_cb() 113 l2->rx_buf = (u8 *) ethhdr; in l2_packet_receive_cb() 116 l2->rx_buf = (u8 *) (ethhdr + 1); in l2_packet_receive_cb() 117 l2->rx_len = hdr->caplen - sizeof(*ethhdr); in l2_packet_receive_cb() 119 l2->rx_src = ethhdr->h_source; in l2_packet_receive_cb()
|
D | l2_packet_ndis.c | 283 struct l2_ethhdr *ethhdr = (struct l2_ethhdr *) l2->rx_buf; in l2_packet_callback() local 288 if (l2->l2_hdr || l2->rx_written < sizeof(*ethhdr)) { in l2_packet_callback() 289 rx_buf = (u8 *) ethhdr; in l2_packet_callback() 292 rx_buf = (u8 *) (ethhdr + 1); in l2_packet_callback() 293 rx_len = l2->rx_written - sizeof(*ethhdr); in l2_packet_callback() 295 rx_src = ethhdr->h_source; in l2_packet_callback()
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_xdp.c | 70 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr() 71 const struct ethhdr *old_eth, in set_ethhdr() 85 struct ethhdr *new_eth; in handle_ipv4() 86 struct ethhdr *old_eth; in handle_ipv4() 87 struct iphdr *iph = data + sizeof(struct ethhdr); in handle_ipv4() 158 struct ethhdr *new_eth; in handle_ipv6() 159 struct ethhdr *old_eth; in handle_ipv6() 160 struct ipv6hdr *ip6h = data + sizeof(struct ethhdr); in handle_ipv6() 218 struct ethhdr *eth = data; in _xdp_tx_iptunnel()
|
D | test_queue_stack_map.h | 34 struct ethhdr *eth = (struct ethhdr *)(data); in _test()
|
D | test_pkt_access.c | 28 struct ethhdr *eth = (struct ethhdr *)(data); in process()
|
D | test_xdp_vlan.c | 57 bool parse_eth_frame(struct ethhdr *eth, void *data_end, struct parse_pkt *pkt) in parse_eth_frame() 245 struct ethhdr *orig_eth = data; in xdp_prognum3()
|
D | test_sk_lookup_kern.c | 61 struct ethhdr *eth = (struct ethhdr *)(data); in bpf_sk_lookup_test0()
|
D | test_progs.c | 50 struct ethhdr eth; 63 struct ethhdr eth; 136 struct ipv6hdr *iph6 = (void *)buf + sizeof(struct ethhdr); in test_xdp() 137 struct iphdr *iph = (void *)buf + sizeof(struct ethhdr); in test_xdp() 1750 struct iphdr *iph = (void *)buf + sizeof(struct ethhdr); in test_queue_stack_map()
|
/external/ltp/testcases/network/stress/ns-tools/ |
D | ns-icmp_redirector.c | 323 sndeth_size = sizeof(struct ethhdr) + sizeof(struct arp_datagram); in return_arp_reply() 389 sndeth_size = sizeof(struct ethhdr) /* Ether header */ in return_icmp4_redirect() 392 +rcveth_size - sizeof(struct ethhdr); /* ICMPv4 payload */ in return_icmp4_redirect() 408 sndip_p->hdr.tot_len = htons(sndeth_size - sizeof(struct ethhdr)); in return_icmp4_redirect() 426 icmp4_datasize = rcveth_size - sizeof(struct ethhdr); in return_icmp4_redirect() 515 sndeth_size = sizeof(struct ethhdr) + sizeof(struct ip6_hdr) in return_neigh_adv() 616 + rcveth_size - sizeof(struct ethhdr); in return_icmp6_redirect() 620 sndeth_size = sizeof(struct ethhdr) + sizeof(struct ip6_hdr) in return_icmp6_redirect()
|
D | ns-traffic.h | 99 struct ethhdr hdr;
|
/external/iptables/iptables/ |
D | nft-bridge.c | 185 add_payload(r, offsetof(struct ethhdr, h_source), 6, in nft_bridge_add() 193 add_payload(r, offsetof(struct ethhdr, h_dest), 6, in nft_bridge_add() 200 add_payload(r, offsetof(struct ethhdr, h_proto), 2, in nft_bridge_add() 288 case offsetof(struct ethhdr, h_dest): in nft_bridge_parse_payload() 295 case offsetof(struct ethhdr, h_source): in nft_bridge_parse_payload() 302 case offsetof(struct ethhdr, h_proto): in nft_bridge_parse_payload()
|
/external/syzkaller/executor/ |
D | common_linux.h | 438 if (length < sizeof(struct ethhdr)) in syz_extract_tcp_res() 440 struct ethhdr* ethhdr = (struct ethhdr*)&data[0]; in syz_extract_tcp_res() local 442 if (ethhdr->h_proto == htons(ETH_P_IP)) { in syz_extract_tcp_res() 443 if (length < sizeof(struct ethhdr) + sizeof(struct iphdr)) in syz_extract_tcp_res() 445 struct iphdr* iphdr = (struct iphdr*)&data[sizeof(struct ethhdr)]; in syz_extract_tcp_res() 448 if (length < sizeof(struct ethhdr) + iphdr->ihl * 4 + sizeof(struct tcphdr)) in syz_extract_tcp_res() 450 tcphdr = (struct tcphdr*)&data[sizeof(struct ethhdr) + iphdr->ihl * 4]; in syz_extract_tcp_res() 452 if (length < sizeof(struct ethhdr) + sizeof(struct ipv6hdr)) in syz_extract_tcp_res() 454 struct ipv6hdr* ipv6hdr = (struct ipv6hdr*)&data[sizeof(struct ethhdr)]; in syz_extract_tcp_res() 458 if (length < sizeof(struct ethhdr) + sizeof(struct ipv6hdr) + sizeof(struct tcphdr)) in syz_extract_tcp_res() [all …]
|
/external/ppp/pppd/plugins/rp-pppoe/ |
D | pppoe.h | 180 struct ethhdr ethHdr; /* Ethernet header */ 194 #define HDR_SIZE (sizeof(struct ethhdr) + PPPOE_OVERHEAD)
|
/external/kernel-headers/original/uapi/linux/ |
D | if_arcnet.h | 82 struct ethhdr eth; /* standard ethernet header (yuck!) */
|
D | if_ether.h | 161 struct ethhdr { struct
|
D | ethtool.h | 835 struct ethhdr ether_spec; 1070 struct ethhdr ether_spec;
|
/external/libnl/include/linux-private/linux/ |
D | if_ether.h | 119 struct ethhdr { struct
|
/external/iproute2/include/uapi/linux/ |
D | if_ether.h | 152 struct ethhdr { struct
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | psock_tpacket.c | 143 struct ethhdr *eth = pay; in test_payload() 145 if (len < sizeof(struct ethhdr)) { in test_payload() 161 struct ethhdr *eth = pay; in create_payload()
|
/external/syzkaller/pkg/csource/ |
D | generated.go | 1036 if (length < sizeof(struct ethhdr)) 1038 struct ethhdr* ethhdr = (struct ethhdr*)&data[0]; 1040 if (ethhdr->h_proto == htons(ETH_P_IP)) { 1041 if (length < sizeof(struct ethhdr) + sizeof(struct iphdr)) 1043 struct iphdr* iphdr = (struct iphdr*)&data[sizeof(struct ethhdr)]; 1046 if (length < sizeof(struct ethhdr) + iphdr->ihl * 4 + sizeof(struct tcphdr)) 1048 tcphdr = (struct tcphdr*)&data[sizeof(struct ethhdr) + iphdr->ihl * 4]; 1050 if (length < sizeof(struct ethhdr) + sizeof(struct ipv6hdr)) 1052 struct ipv6hdr* ipv6hdr = (struct ipv6hdr*)&data[sizeof(struct ethhdr)]; 1055 if (length < sizeof(struct ethhdr) + sizeof(struct ipv6hdr) + sizeof(struct tcphdr)) [all …]
|