/external/syslinux/gpxe/src/core/ |
D | gdbudp.c | 60 struct ethhdr *ethhdr; in gdbudp_recv() local 72 if ( iob_len ( iob ) < sizeof ( *ethhdr ) ) { in gdbudp_recv() 75 ethhdr = iob->data; in gdbudp_recv() 76 iob_pull ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv() 79 if ( ethhdr->h_protocol == htons ( ETH_P_ARP ) ) { in gdbudp_recv() 98 ethhdr = iob_push ( iob, sizeof ( *ethhdr ) ); in gdbudp_recv() 99 memcpy ( ethhdr->h_dest, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv() 100 memcpy ( ethhdr->h_source, netdev->ll_addr, ETH_ALEN ); in gdbudp_recv() 106 if ( ethhdr->h_protocol != htons ( ETH_P_IP ) ) { in gdbudp_recv() 130 memcpy ( dest_eth, ethhdr->h_source, ETH_ALEN ); in gdbudp_recv() [all …]
|
/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 | 841 struct l2_ethhdr *ethhdr; in hostapd_rrb_receive() local 842 if (len < sizeof(*ethhdr)) in hostapd_rrb_receive() 844 ethhdr = (struct l2_ethhdr *) buf; in hostapd_rrb_receive() 846 MACSTR, MAC2STR(ethhdr->h_source), MAC2STR(ethhdr->h_dest)); in hostapd_rrb_receive() 847 if (!is_multicast_ether_addr(ethhdr->h_dest) && in hostapd_rrb_receive() 848 os_memcmp(hapd->own_addr, ethhdr->h_dest, ETH_ALEN) != 0) in hostapd_rrb_receive() 850 wpa_ft_rrb_rx(hapd->wpa_auth, ethhdr->h_source, buf + sizeof(*ethhdr), in hostapd_rrb_receive() 851 len - sizeof(*ethhdr)); in hostapd_rrb_receive()
|
/external/syslinux/gpxe/src/net/ |
D | ethernet.c | 56 struct ethhdr *ethhdr = iob_push ( iobuf, sizeof ( *ethhdr ) ); in eth_push() local 59 memcpy ( ethhdr->h_dest, ll_dest, ETH_ALEN ); in eth_push() 60 memcpy ( ethhdr->h_source, ll_source, ETH_ALEN ); in eth_push() 61 ethhdr->h_protocol = net_proto; in eth_push() 79 struct ethhdr *ethhdr = iobuf->data; in eth_pull() local 82 if ( iob_len ( iobuf ) < sizeof ( *ethhdr ) ) { in eth_pull() 89 iob_pull ( iobuf, sizeof ( *ethhdr ) ); in eth_pull() 92 *ll_dest = ethhdr->h_dest; in eth_pull() 93 *ll_source = ethhdr->h_source; in eth_pull() 94 *net_proto = ethhdr->h_protocol; in eth_pull()
|
/external/syslinux/core/lwip/src/netif/ |
D | etharp.c | 412 struct eth_hdr *ethhdr = (struct eth_hdr *)p->payload; in etharp_send_ip() local 416 ETHADDR32_COPY(ðhdr->dest, dst); in etharp_send_ip() 417 ETHADDR16_COPY(ðhdr->src, src); in etharp_send_ip() 418 ethhdr->type = PP_HTONS(ETHTYPE_IP); in etharp_send_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); [all …]
|
D | undiif.c | 243 struct eth_hdr *ethhdr, char dir, char status, in snprintf_eth_hdr() argument 246 u8_t *d = ethhdr->dest.addr; in snprintf_eth_hdr() 247 u8_t *s = ethhdr->src.addr; in snprintf_eth_hdr() 254 (unsigned)htons(ethhdr->type), in snprintf_eth_hdr() 259 struct eth_hdr *ethhdr, char dir, in snprintf_arp_hdr() argument 265 if (ntohs(ethhdr->type) == ETHTYPE_ARP) { in snprintf_arp_hdr() 266 arphdr = (struct etharp_hdr *)((void *)ethhdr + 14); in snprintf_arp_hdr() 290 struct eth_hdr *ethhdr, char dir, in snprintf_ip_hdr() argument 294 if (ntohs(ethhdr->type) == ETHTYPE_IP) { in snprintf_ip_hdr() 295 iphdr = (struct ip_hdr *)((void *)ethhdr + 14); in snprintf_ip_hdr() [all …]
|
D | ethernetif.c | 227 struct eth_hdr *ethhdr; 237 ethhdr = p->payload; 239 switch (htons(ethhdr->type)) {
|
/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_pkt_access.c | 28 struct ethhdr *eth = (struct ethhdr *)(data); in process()
|
D | test_progs.c | 45 struct ethhdr eth; 58 struct ethhdr eth; 131 struct ipv6hdr *iph6 = (void *)buf + sizeof(struct ethhdr); in test_xdp() 132 struct iphdr *iph = (void *)buf + sizeof(struct ethhdr); in test_xdp()
|
/external/syslinux/gpxe/src/drivers/net/ |
D | legacy.c | 28 struct ethhdr *ethhdr; in legacy_transmit() local 32 ethhdr = iobuf->data; in legacy_transmit() 33 iob_pull ( iobuf, sizeof ( *ethhdr ) ); in legacy_transmit() 34 nic->nic_op->transmit ( nic, ( const char * ) ethhdr->h_dest, in legacy_transmit() 35 ntohs ( ethhdr->h_protocol ), in legacy_transmit()
|
/external/syslinux/core/lwip/src/netif/ppp/ |
D | ppp_oe.c | 301 struct eth_hdr *ethhdr; in pppoe_dispatch_disc_pkt() local 308 if (pb->len < sizeof(*ethhdr)) { in pppoe_dispatch_disc_pkt() 311 ethhdr = (struct eth_hdr *)pb->payload; in pppoe_dispatch_disc_pkt() 312 off = sizeof(*ethhdr); in pppoe_dispatch_disc_pkt() 326 ph = (struct pppoehdr *) (ethhdr + 1); in pppoe_dispatch_disc_pkt() 508 MEMCPY(&sc->sc_dest, ethhdr->src.addr, sizeof(sc->sc_dest.addr)); in pppoe_dispatch_disc_pkt() 639 struct eth_hdr *ethhdr; in pppoe_output() local 648 ethhdr = (struct eth_hdr *)pb->payload; in pppoe_output() 650 ethhdr->type = htons(etype); in pppoe_output() 651 MEMCPY(ethhdr->dest.addr, sc->sc_dest.addr, sizeof(ethhdr->dest.addr)); in pppoe_output() [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/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/ppp/pppd/plugins/rp-pppoe/ |
D | pppoe.h | 180 struct ethhdr ethHdr; /* Ethernet header */ 194 #define HDR_SIZE (sizeof(struct ethhdr) + PPPOE_OVERHEAD)
|
/external/syslinux/gpxe/src/include/gpxe/ |
D | if_ether.h | 27 struct ethhdr { struct
|
/external/kernel-headers/original/uapi/linux/ |
D | if_arcnet.h | 82 struct ethhdr eth; /* standard ethernet header (yuck!) */
|
D | if_ether.h | 154 struct ethhdr { struct
|
/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
|