/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 | 1356 struct l2_ethhdr *ethhdr; in hostapd_rrb_receive() local 1357 if (len < sizeof(*ethhdr)) in hostapd_rrb_receive() 1359 ethhdr = (struct l2_ethhdr *) buf; in hostapd_rrb_receive() 1361 MACSTR, MAC2STR(ethhdr->h_source), MAC2STR(ethhdr->h_dest)); in hostapd_rrb_receive() 1362 if (!is_multicast_ether_addr(ethhdr->h_dest) && in hostapd_rrb_receive() 1363 os_memcmp(hapd->own_addr, ethhdr->h_dest, ETH_ALEN) != 0) in hostapd_rrb_receive() 1365 wpa_ft_rrb_rx(hapd->wpa_auth, ethhdr->h_source, buf + sizeof(*ethhdr), in hostapd_rrb_receive() 1366 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 (!l2->rx_callback || !packet || 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 (!l2->rx_callback || !pkt_data || 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 (!l2->rx_callback || !packet || 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/progs/ |
D | test_xdp_loop.c | 66 static __always_inline void set_ethhdr(struct ethhdr *new_eth, in set_ethhdr() 67 const struct ethhdr *old_eth, in set_ethhdr() 81 struct ethhdr *new_eth; in handle_ipv4() 82 struct ethhdr *old_eth; in handle_ipv4() 83 struct iphdr *iph = data + sizeof(struct ethhdr); in handle_ipv4() 154 struct ethhdr *new_eth; in handle_ipv6() 155 struct ethhdr *old_eth; in handle_ipv6() 156 struct ipv6hdr *ip6h = data + sizeof(struct ethhdr); in handle_ipv6() 214 struct ethhdr *eth = data; in _xdp_tx_iptunnel()
|
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_tcp_check_syncookie_kern.c | 50 struct ethhdr *ethh; in check_syncookie() 66 ipv4h = data + sizeof(struct ethhdr); in check_syncookie() 73 tcph = data + sizeof(struct ethhdr) + sizeof(struct iphdr); in check_syncookie() 98 ipv6h = data + sizeof(struct ethhdr); in check_syncookie() 105 tcph = data + sizeof(struct ethhdr) + sizeof(struct ipv6hdr); in check_syncookie()
|
D | test_queue_stack_map.h | 34 struct ethhdr *eth = (struct ethhdr *)(data); in _test()
|
D | test_pkt_access.c | 55 struct ethhdr *eth = (struct ethhdr *)(data); in test_pkt_access()
|
D | xdping_kern.c | 63 struct ethhdr *eth = data; in icmp_check() 95 struct ethhdr *eth = data; in xdping_client() 158 struct ethhdr *eth = data; in xdping_server()
|
D | test_tc_edt.c | 87 if (data + sizeof(struct ethhdr) > data_end) in handle_ipv4() 89 iph = (struct iphdr *)(data + sizeof(struct ethhdr)); in handle_ipv4()
|
D | test_sk_lookup_kern.c | 61 struct ethhdr *eth = (struct ethhdr *)(data); in bpf_sk_lookup_test0()
|
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()
|
/external/crosvm/net_sys/src/ |
D | if_tun.rs | 333 pub struct ethhdr { struct 341 ::std::mem::size_of::<ethhdr>(), in bindgen_test_layout_ethhdr() argument 343 concat!("Size of: ", stringify!(ethhdr)) in bindgen_test_layout_ethhdr() 346 ::std::mem::align_of::<ethhdr>(), in bindgen_test_layout_ethhdr() 348 concat!("Alignment of ", stringify!(ethhdr)) in bindgen_test_layout_ethhdr() 351 unsafe { &(*(0 as *const ethhdr)).h_dest as *const _ as usize }, in bindgen_test_layout_ethhdr() 355 stringify!(ethhdr), in bindgen_test_layout_ethhdr() 361 unsafe { &(*(0 as *const ethhdr)).h_source as *const _ as usize }, in bindgen_test_layout_ethhdr() 365 stringify!(ethhdr), in bindgen_test_layout_ethhdr() 371 unsafe { &(*(0 as *const ethhdr)).h_proto as *const _ as usize }, in bindgen_test_layout_ethhdr() [all …]
|
/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()
|
/external/crosvm/virtio_sys/src/ |
D | virtio_net.rs | 328 pub struct ethhdr { struct 336 ::std::mem::size_of::<ethhdr>(), in bindgen_test_layout_ethhdr() argument 338 concat!("Size of: ", stringify!(ethhdr)) in bindgen_test_layout_ethhdr() 341 ::std::mem::align_of::<ethhdr>(), in bindgen_test_layout_ethhdr() 343 concat!("Alignment of ", stringify!(ethhdr)) in bindgen_test_layout_ethhdr() 346 unsafe { &(*(0 as *const ethhdr)).h_dest as *const _ as usize }, in bindgen_test_layout_ethhdr() 350 stringify!(ethhdr), in bindgen_test_layout_ethhdr() 356 unsafe { &(*(0 as *const ethhdr)).h_source as *const _ as usize }, in bindgen_test_layout_ethhdr() 360 stringify!(ethhdr), in bindgen_test_layout_ethhdr() 366 unsafe { &(*(0 as *const ethhdr)).h_proto as *const _ as usize }, in bindgen_test_layout_ethhdr() [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/ |
D | xdp.c | 13 struct ipv6hdr *iph6 = (void *)buf + sizeof(struct ethhdr); in test_xdp() 14 struct iphdr *iph = (void *)buf + sizeof(struct ethhdr); in test_xdp()
|
D | flow_dissector.c | 39 struct ethhdr eth; 45 struct ethhdr eth; 52 struct ethhdr eth; 60 struct ethhdr eth; 66 struct ethhdr eth; 78 struct ethhdr eth;
|
/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!) */
|
/external/iptables/iptables/ |
D | nft-bridge.c | 130 offsetof(struct ethhdr, h_source), in nft_bridge_add() 137 offsetof(struct ethhdr, h_dest), in nft_bridge_add() 143 add_payload(r, offsetof(struct ethhdr, h_proto), 2, in nft_bridge_add() 213 case offsetof(struct ethhdr, h_dest): in nft_bridge_parse_payload() 229 case offsetof(struct ethhdr, h_source): in nft_bridge_parse_payload() 244 case offsetof(struct ethhdr, h_proto): in nft_bridge_parse_payload()
|
/external/iproute2/include/uapi/linux/ |
D | if_ether.h | 152 struct ethhdr { struct
|