Home
last modified time | relevance | path

Searched refs:ethhdr (Results 1 – 25 of 25) sorted by relevance

/external/syslinux/gpxe/src/core/
Dgdbudp.c60 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/
Dpreauth_auth.c48 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 …]
Dwpa_auth_glue.c573 struct l2_ethhdr *ethhdr; in hostapd_rrb_receive() local
574 if (len < sizeof(*ethhdr)) in hostapd_rrb_receive()
576 ethhdr = (struct l2_ethhdr *) buf; in hostapd_rrb_receive()
578 MACSTR, MAC2STR(ethhdr->h_source), MAC2STR(ethhdr->h_dest)); in hostapd_rrb_receive()
579 if (!is_multicast_ether_addr(ethhdr->h_dest) && in hostapd_rrb_receive()
580 os_memcmp(hapd->own_addr, ethhdr->h_dest, ETH_ALEN) != 0) in hostapd_rrb_receive()
582 wpa_ft_rrb_rx(hapd->wpa_auth, ethhdr->h_source, buf + sizeof(*ethhdr), in hostapd_rrb_receive()
583 len - sizeof(*ethhdr)); in hostapd_rrb_receive()
/external/syslinux/gpxe/src/net/
Dethernet.c56 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/
Detharp.c412 struct eth_hdr *ethhdr = (struct eth_hdr *)p->payload; in etharp_send_ip() local
416 ETHADDR32_COPY(&ethhdr->dest, dst); in etharp_send_ip()
417 ETHADDR16_COPY(&ethhdr->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 …]
Dundiif.c243 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 …]
Dethernetif.c227 struct eth_hdr *ethhdr;
237 ethhdr = p->payload;
239 switch (htons(ethhdr->type)) {
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_pcap.c124 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 …]
Dl2_packet_freebsd.c81 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()
Dl2_packet_winpcap.c106 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()
Dl2_packet_ndis.c283 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/syslinux/gpxe/src/drivers/net/
Dlegacy.c28 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/
Dppp_oe.c301 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/
Dns-icmp_redirector.c323 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()
Dns-traffic.h99 struct ethhdr hdr;
/external/iptables/iptables/
Dnft-bridge.c185 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/syslinux/gpxe/src/include/gpxe/
Dif_ether.h27 struct ethhdr { struct
/external/ppp/pppd/plugins/rp-pppoe/
Dpppoe.h180 struct ethhdr ethHdr; /* Ethernet header */
194 #define HDR_SIZE (sizeof(struct ethhdr) + PPPOE_OVERHEAD)
/external/kernel-headers/original/uapi/linux/
Dif_arcnet.h81 struct ethhdr eth; /* standard ethernet header (yuck!) */
Dif_ether.h144 struct ethhdr { struct
Dethtool.h834 struct ethhdr ether_spec;
1050 struct ethhdr ether_spec;
/external/libnl/include/linux-private/linux/
Dif_ether.h119 struct ethhdr { struct
/external/iproute2/include/linux/
Dif_ether.h138 struct ethhdr { struct
/external/linux-kselftest/tools/testing/selftests/net/
Dpsock_tpacket.c141 struct ethhdr *eth = pay; in test_payload()
143 if (len < sizeof(struct ethhdr)) { in test_payload()
159 struct ethhdr *eth = pay; in create_payload()
/external/syslinux/core/lwip/
DCHANGELOG1946 pointing to ethhdr) if the netif got the NETIF_FLAG_ETHARP flag. Else, packets