/external/syslinux/gpxe/src/net/ |
ethernet.c | 56 struct ethhdr *ethhdr = iob_push ( iobuf, sizeof ( *ethhdr ) ); local 59 memcpy ( ethhdr->h_dest, ll_dest, ETH_ALEN ); 60 memcpy ( ethhdr->h_source, ll_source, ETH_ALEN ); 61 ethhdr->h_protocol = net_proto; 79 struct ethhdr *ethhdr = iobuf->data; local 82 if ( iob_len ( iobuf ) < sizeof ( *ethhdr ) ) { 89 iob_pull ( iobuf, sizeof ( *ethhdr ) ); [all...] |
/external/syslinux/gpxe/src/core/ |
gdbudp.c | 60 struct ethhdr *ethhdr; local 72 if ( iob_len ( iob ) < sizeof ( *ethhdr ) ) { 75 ethhdr = iob->data; 76 iob_pull ( iob, sizeof ( *ethhdr ) ); 79 if ( ethhdr->h_protocol == htons ( ETH_P_ARP ) ) { 98 ethhdr = iob_push ( iob, sizeof ( *ethhdr ) ); 99 memcpy ( ethhdr->h_dest, ethhdr->h_source, ETH_ALEN ) 158 struct ethhdr *ethhdr; local [all...] |
/external/wpa_supplicant_8/src/ap/ |
preauth_auth.c | 48 struct l2_ethhdr *ethhdr; local 52 if (len < sizeof(*ethhdr) + sizeof(*hdr)) { 58 ethhdr = (struct l2_ethhdr *) buf; 59 hdr = (struct ieee802_1x_hdr *) (ethhdr + 1); 61 if (os_memcmp(ethhdr->h_dest, hapd->own_addr, ETH_ALEN) != 0) { 63 MACSTR, MAC2STR(ethhdr->h_dest)); 67 sta = ap_get_sta(hapd, ethhdr->h_source); 74 sta = ap_sta_add(hapd, ethhdr->h_source); 92 ieee802_1x_receive(hapd, ethhdr->h_source, (u8 *) (ethhdr + 1) 235 struct l2_ethhdr *ethhdr; local [all...] |
eth_p_oui.c | 55 const struct l2_ethhdr *ethhdr; local 57 if (len < sizeof(*ethhdr) + sizeof(global_oui) + 1) { 62 ethhdr = (struct l2_ethhdr *) buf; 64 buf += sizeof(*ethhdr); 65 len -= sizeof(*ethhdr); 78 eth_p_oui_deliver(receiver, ethhdr->h_source, ethhdr->h_dest, 168 struct l2_ethhdr *ethhdr; local 170 packet_len = sizeof(*ethhdr) + sizeof(global_oui) + 1 + len; 176 ethhdr = (struct l2_ethhdr *) packet [all...] |
wpa_auth_glue.c | 841 struct l2_ethhdr *ethhdr; local 842 if (len < sizeof(*ethhdr)) 844 ethhdr = (struct l2_ethhdr *) buf; 846 MACSTR, MAC2STR(ethhdr->h_source), MAC2STR(ethhdr->h_dest)); 847 if (!is_multicast_ether_addr(ethhdr->h_dest) && 848 os_memcmp(hapd->own_addr, ethhdr->h_dest, ETH_ALEN) != 0) 850 wpa_ft_rrb_rx(hapd->wpa_auth, ethhdr->h_source, buf + sizeof(*ethhdr), 851 len - sizeof(*ethhdr)); [all...] |
/external/wpa_supplicant_8/src/l2_packet/ |
l2_packet_pcap.c | 124 struct l2_ethhdr *ethhdr; local 130 if (packet == NULL || hdr.caplen < sizeof(*ethhdr)) 133 ethhdr = (struct l2_ethhdr *) packet; 135 buf = (unsigned char *) ethhdr; 138 buf = (unsigned char *) (ethhdr + 1); 139 len = hdr.caplen - sizeof(*ethhdr); 141 l2->rx_callback(l2->rx_callback_ctx, ethhdr->h_source, buf, len); 151 struct l2_ethhdr *ethhdr; local 155 if (pkt_data == NULL || hdr->caplen < sizeof(*ethhdr)) 158 ethhdr = (struct l2_ethhdr *) pkt_data [all...] |
l2_packet_freebsd.c | 81 struct l2_ethhdr *ethhdr; local 87 if (packet == NULL || hdr.caplen < sizeof(*ethhdr)) 90 ethhdr = (struct l2_ethhdr *) packet; 92 buf = (unsigned char *) ethhdr; 95 buf = (unsigned char *) (ethhdr + 1); 96 len = hdr.caplen - sizeof(*ethhdr); 98 l2->rx_callback(l2->rx_callback_ctx, ethhdr->h_source, buf, len);
|
l2_packet_winpcap.c | 106 struct l2_ethhdr *ethhdr; local 108 if (pkt_data == NULL || hdr->caplen < sizeof(*ethhdr)) 111 ethhdr = (struct l2_ethhdr *) pkt_data; 113 l2->rx_buf = (u8 *) ethhdr; 116 l2->rx_buf = (u8 *) (ethhdr + 1); 117 l2->rx_len = hdr->caplen - sizeof(*ethhdr); 119 l2->rx_src = ethhdr->h_source;
|
l2_packet_ndis.c | 283 struct l2_ethhdr *ethhdr = (struct l2_ethhdr *) l2->rx_buf; local 288 if (l2->l2_hdr || l2->rx_written < sizeof(*ethhdr)) { 289 rx_buf = (u8 *) ethhdr; 292 rx_buf = (u8 *) (ethhdr + 1); 293 rx_len = l2->rx_written - sizeof(*ethhdr); 295 rx_src = ethhdr->h_source;
|
/external/syslinux/core/lwip/src/netif/ |
etharp.c | 412 struct eth_hdr *ethhdr = (struct eth_hdr *)p->payload; local 416 ETHADDR32_COPY(ðhdr->dest, dst); 417 ETHADDR16_COPY(ðhdr->src, src); 418 ethhdr->type = PP_HTONS(ETHTYPE_IP); 621 struct eth_hdr *ethhdr; local 628 ethhdr = (struct eth_hdr *)p->payload; 629 iphdr = (struct ip_hdr *)((u8_t*)ethhdr + SIZEOF_ETH_HDR); 631 if (ethhdr->type == PP_HTONS(ETHTYPE_VLAN)) { 632 iphdr = (struct ip_hdr *)((u8_t*)ethhdr + SIZEOF_ETH_HDR + SIZEOF_VLAN_HDR); 648 update_arp_entry(netif, &iphdr_src, &(ethhdr->src), ETHARP_FLAG_FIND_ONLY) 671 struct eth_hdr *ethhdr; local 1124 struct eth_hdr *ethhdr; local 1218 struct eth_hdr* ethhdr; local [all...] |
undiif.c | 243 struct eth_hdr *ethhdr, char dir, char status, 246 u8_t *d = ethhdr->dest.addr; 247 u8_t *s = ethhdr->src.addr; 254 (unsigned)htons(ethhdr->type), 259 struct eth_hdr *ethhdr, char dir, 265 if (ntohs(ethhdr->type) == ETHTYPE_ARP) { 266 arphdr = (struct etharp_hdr *)((void *)ethhdr + 14); 290 struct eth_hdr *ethhdr, char dir, 294 if (ntohs(ethhdr->type) == ETHTYPE_IP) { 295 iphdr = (struct ip_hdr *)((void *)ethhdr + 14) 481 struct eth_hdr *ethhdr = pbuf->payload; local 1465 struct eth_hdr *ethhdr = p->payload; local [all...] |
ethernetif.c | 227 struct eth_hdr *ethhdr; 237 ethhdr = p->payload; 239 switch (htons(ethhdr->type)) {
|
/external/syslinux/gpxe/src/drivers/net/ |
legacy.c | 28 struct ethhdr *ethhdr; local 32 ethhdr = iobuf->data; 33 iob_pull ( iobuf, sizeof ( *ethhdr ) ); 34 nic->nic_op->transmit ( nic, ( const char * ) ethhdr->h_dest, 35 ntohs ( ethhdr->h_protocol ),
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
test_xdp.c | 70 static __always_inline void set_ethhdr(struct ethhdr *new_eth, 71 const struct ethhdr *old_eth, 85 struct ethhdr *new_eth; 86 struct ethhdr *old_eth; 87 struct iphdr *iph = data + sizeof(struct ethhdr); 158 struct ethhdr *new_eth; 159 struct ethhdr *old_eth; 160 struct ipv6hdr *ip6h = data + sizeof(struct ethhdr); 218 struct ethhdr *eth = data;
|
test_pkt_access.c | 28 struct ethhdr *eth = (struct ethhdr *)(data);
|
/external/syslinux/gpxe/src/include/gpxe/ |
if_ether.h | 27 struct ethhdr { struct
|
/bionic/libc/kernel/uapi/linux/ |
if_arcnet.h | 53 struct ethhdr eth;
|
if_ether.h | 121 struct ethhdr { struct
|
/external/kernel-headers/original/uapi/linux/ |
if_arcnet.h | 82 struct ethhdr eth; /* standard ethernet header (yuck!) */
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/linux/ |
if_arcnet.h | 84 struct ethhdr eth; /* standard ethernet header (yuck!) */
|
if_ether.h | 126 struct ethhdr { struct
|
/external/syslinux/core/lwip/src/netif/ppp/ |
ppp_oe.c | 301 struct eth_hdr *ethhdr; local 308 if (pb->len < sizeof(*ethhdr)) { 311 ethhdr = (struct eth_hdr *)pb->payload; 312 off = sizeof(*ethhdr); 326 ph = (struct pppoehdr *) (ethhdr + 1); 508 MEMCPY(&sc->sc_dest, ethhdr->src.addr, sizeof(sc->sc_dest.addr)); 639 struct eth_hdr *ethhdr; local 648 ethhdr = (struct eth_hdr *)pb->payload; 650 ethhdr->type = htons(etype); 651 MEMCPY(ethhdr->dest.addr, sc->sc_dest.addr, sizeof(ethhdr->dest.addr)) 950 struct eth_hdr *ethhdr; local [all...] |
/external/ltp/testcases/network/stress/ns-tools/ |
ns-icmp_redirector.c | 323 sndeth_size = sizeof(struct ethhdr) + sizeof(struct arp_datagram); 389 sndeth_size = sizeof(struct ethhdr) /* Ether header */ 392 +rcveth_size - sizeof(struct ethhdr); /* ICMPv4 payload */ 408 sndip_p->hdr.tot_len = htons(sndeth_size - sizeof(struct ethhdr)); 426 icmp4_datasize = rcveth_size - sizeof(struct ethhdr); 515 sndeth_size = sizeof(struct ethhdr) + sizeof(struct ip6_hdr) 616 + rcveth_size - sizeof(struct ethhdr); 620 sndeth_size = sizeof(struct ethhdr) + sizeof(struct ip6_hdr)
|
/external/libnl/include/linux-private/linux/ |
if_ether.h | 119 struct ethhdr { struct
|
/external/iptables/iptables/ |
nft-bridge.c | 185 add_payload(r, offsetof(struct ethhdr, h_source), 6, 193 add_payload(r, offsetof(struct ethhdr, h_dest), 6, 200 add_payload(r, offsetof(struct ethhdr, h_proto), 2, 288 case offsetof(struct ethhdr, h_dest): 295 case offsetof(struct ethhdr, h_source): 302 case offsetof(struct ethhdr, h_proto):
|