Searched refs:ethhdr (Results 1 - 15 of 15) sorted by relevance

/external/wpa_supplicant/
H A Dl2_packet_pcap.c129 struct l2_ethhdr *ethhdr; local
135 if (packet == NULL || hdr.caplen < sizeof(*ethhdr))
138 ethhdr = (struct l2_ethhdr *) packet;
140 buf = (unsigned char *) ethhdr;
143 buf = (unsigned char *) (ethhdr + 1);
144 len = hdr.caplen - sizeof(*ethhdr);
146 l2->rx_callback(l2->rx_callback_ctx, ethhdr->h_source, buf, len);
156 struct l2_ethhdr *ethhdr; local
160 if (pkt_data == NULL || hdr->caplen < sizeof(*ethhdr))
163 ethhdr
[all...]
H A Dl2_packet_freebsd.c80 struct l2_ethhdr *ethhdr; local
86 if (packet == NULL || hdr.caplen < sizeof(*ethhdr))
89 ethhdr = (struct l2_ethhdr *) packet;
91 buf = (unsigned char *) ethhdr;
94 buf = (unsigned char *) (ethhdr + 1);
95 len = hdr.caplen - sizeof(*ethhdr);
97 l2->rx_callback(l2->rx_callback_ctx, ethhdr->h_source, buf, len);
H A Dl2_packet_winpcap.c112 struct l2_ethhdr *ethhdr; local
114 if (pkt_data == NULL || hdr->caplen < sizeof(*ethhdr))
117 ethhdr = (struct l2_ethhdr *) pkt_data;
119 l2->rx_buf = (u8 *) ethhdr;
122 l2->rx_buf = (u8 *) (ethhdr + 1);
123 l2->rx_len = hdr->caplen - sizeof(*ethhdr);
125 l2->rx_src = ethhdr->h_source;
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;
/external/wpa_supplicant_6/wpa_supplicant/src/l2_packet/
H A Dl2_packet_pcap.c129 struct l2_ethhdr *ethhdr; local
135 if (packet == NULL || hdr.caplen < sizeof(*ethhdr))
138 ethhdr = (struct l2_ethhdr *) packet;
140 buf = (unsigned char *) ethhdr;
143 buf = (unsigned char *) (ethhdr + 1);
144 len = hdr.caplen - sizeof(*ethhdr);
146 l2->rx_callback(l2->rx_callback_ctx, ethhdr->h_source, buf, len);
156 struct l2_ethhdr *ethhdr; local
160 if (pkt_data == NULL || hdr->caplen < sizeof(*ethhdr))
163 ethhdr
[all...]
H A Dl2_packet_freebsd.c83 struct l2_ethhdr *ethhdr; local
89 if (packet == NULL || hdr.caplen < sizeof(*ethhdr))
92 ethhdr = (struct l2_ethhdr *) packet;
94 buf = (unsigned char *) ethhdr;
97 buf = (unsigned char *) (ethhdr + 1);
98 len = hdr.caplen - sizeof(*ethhdr);
100 l2->rx_callback(l2->rx_callback_ctx, ethhdr->h_source, buf, len);
H A Dl2_packet_winpcap.c112 struct l2_ethhdr *ethhdr; local
114 if (pkt_data == NULL || hdr->caplen < sizeof(*ethhdr))
117 ethhdr = (struct l2_ethhdr *) pkt_data;
119 l2->rx_buf = (u8 *) ethhdr;
122 l2->rx_buf = (u8 *) (ethhdr + 1);
123 l2->rx_len = hdr->caplen - sizeof(*ethhdr);
125 l2->rx_src = ethhdr->h_source;
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;
/external/kernel-headers/original/linux/
H A Dif_ether.h117 struct ethhdr { struct
126 static inline struct ethhdr *eth_hdr(const struct sk_buff *skb)
128 return (struct ethhdr *)skb_mac_header(skb);
H A Dif_arcnet.h86 struct ethhdr eth; /* standard ethernet header (yuck!) */
/external/ppp/pppd/plugins/rp-pppoe/
H A Dpppoe.h81 #define ethhdr ether_header macro
95 #define ethhdr ether_header macro
207 struct ethhdr ethHdr; /* Ethernet header */
223 #define HDR_SIZE (sizeof(struct ethhdr) + PPPOE_OVERHEAD)
H A Dif.c552 data_size = size - sizeof(struct ethhdr);
556 memcpy((char *)xmitbuf, (char *)pkt + sizeof(struct ethhdr), data_size);
/external/iproute2/include/linux/
H A Dif_ether.h117 struct ethhdr { struct
/external/qemu/slirp/
H A Dslirp.c573 struct ethhdr struct
599 struct ethhdr *eh = (struct ethhdr *)pkt;
602 struct ethhdr *reh = (struct ethhdr *)arp_reply;
690 struct ethhdr *eh = (struct ethhdr *)buf;
697 struct ethhdr *reh = (struct ethhdr *)arp_req;
732 memcpy(buf + sizeof(struct ethhdr), ip_dat
[all...]
/external/qemu/slirp-android/
H A Dslirp.c654 struct ethhdr struct
680 struct ethhdr *eh = (struct ethhdr *)pkt;
683 struct ethhdr *reh = (struct ethhdr *)arp_reply;
775 struct ethhdr *eh = (struct ethhdr *)buf;
782 struct ethhdr *reh = (struct ethhdr *)arp_req;
817 memcpy(buf + sizeof(struct ethhdr), ip_dat
[all...]

Completed in 131 milliseconds