Searched defs:ethhdr (Results 1 - 25 of 28) sorted by relevance

12

/external/syslinux/gpxe/src/drivers/net/
H A Dlegacy.c28 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/syslinux/gpxe/src/include/gpxe/
H A Dif_ether.h27 struct ethhdr { struct
/external/syslinux/gpxe/src/core/
H A Dgdbudp.c60 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
158 struct ethhdr *ethhdr; local
[all...]
/external/syslinux/gpxe/src/net/
H A Dethernet.c56 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/wpa_supplicant_8/hostapd/src/ap/
H A Dpreauth_auth.c48 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
235 struct l2_ethhdr *ethhdr; local
[all...]
H A Dwpa_auth_glue.c573 struct l2_ethhdr *ethhdr; local
574 if (len < sizeof(*ethhdr))
576 ethhdr = (struct l2_ethhdr *) buf;
578 MACSTR, MAC2STR(ethhdr->h_source), MAC2STR(ethhdr->h_dest));
579 if (!is_multicast_ether_addr(ethhdr->h_dest) &&
580 os_memcmp(hapd->own_addr, ethhdr->h_dest, ETH_ALEN) != 0)
582 wpa_ft_rrb_rx(hapd->wpa_auth, ethhdr->h_source, buf + sizeof(*ethhdr),
583 len - sizeof(*ethhdr));
[all...]
/external/wpa_supplicant_8/src/ap/
H A Dpreauth_auth.c48 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
235 struct l2_ethhdr *ethhdr; local
[all...]
H A Dwpa_auth_glue.c573 struct l2_ethhdr *ethhdr; local
574 if (len < sizeof(*ethhdr))
576 ethhdr = (struct l2_ethhdr *) buf;
578 MACSTR, MAC2STR(ethhdr->h_source), MAC2STR(ethhdr->h_dest));
579 if (!is_multicast_ether_addr(ethhdr->h_dest) &&
580 os_memcmp(hapd->own_addr, ethhdr->h_dest, ETH_ALEN) != 0)
582 wpa_ft_rrb_rx(hapd->wpa_auth, ethhdr->h_source, buf + sizeof(*ethhdr),
583 len - sizeof(*ethhdr));
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/ap/
H A Dpreauth_auth.c48 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
235 struct l2_ethhdr *ethhdr; local
[all...]
H A Dwpa_auth_glue.c573 struct l2_ethhdr *ethhdr; local
574 if (len < sizeof(*ethhdr))
576 ethhdr = (struct l2_ethhdr *) buf;
578 MACSTR, MAC2STR(ethhdr->h_source), MAC2STR(ethhdr->h_dest));
579 if (!is_multicast_ether_addr(ethhdr->h_dest) &&
580 os_memcmp(hapd->own_addr, ethhdr->h_dest, ETH_ALEN) != 0)
582 wpa_ft_rrb_rx(hapd->wpa_auth, ethhdr->h_source, buf + sizeof(*ethhdr),
583 len - sizeof(*ethhdr));
[all...]
/external/wpa_supplicant_8/hostapd/src/l2_packet/
H A Dl2_packet_freebsd.c81 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);
H A Dl2_packet_ndis.c283 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;
H A Dl2_packet_pcap.c124 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
[all...]
H A Dl2_packet_winpcap.c106 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;
/external/wpa_supplicant_8/src/l2_packet/
H A Dl2_packet_freebsd.c81 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);
H A Dl2_packet_ndis.c283 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;
H A Dl2_packet_pcap.c124 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
[all...]
H A Dl2_packet_winpcap.c106 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;
/external/wpa_supplicant_8/wpa_supplicant/src/l2_packet/
H A Dl2_packet_freebsd.c81 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);
H A Dl2_packet_ndis.c283 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;
H A Dl2_packet_pcap.c124 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
[all...]
H A Dl2_packet_winpcap.c106 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;
/external/libnl/include/linux-private/linux/
H A Dif_ether.h119 struct ethhdr { struct
/external/syslinux/core/lwip/src/netif/
H A Detharp.c412 struct eth_hdr *ethhdr = (struct eth_hdr *)p->payload; local
416 ETHADDR32_COPY(&ethhdr->dest, dst);
417 ETHADDR16_COPY(&ethhdr->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
671 struct eth_hdr *ethhdr; local
1124 struct eth_hdr *ethhdr; local
1218 struct eth_hdr* ethhdr; local
[all...]
/external/syslinux/core/lwip/src/netif/ppp/
H A Dppp_oe.c301 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
950 struct eth_hdr *ethhdr; local
[all...]

Completed in 382 milliseconds

12