Searched refs:ethhdr (Results 1 - 15 of 15) sorted by relevance
/external/wpa_supplicant/ |
H A D | l2_packet_pcap.c | 129 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 D | l2_packet_freebsd.c | 80 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 D | l2_packet_winpcap.c | 112 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 D | 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/wpa_supplicant_6/wpa_supplicant/src/l2_packet/ |
H A D | l2_packet_pcap.c | 129 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 D | l2_packet_freebsd.c | 83 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 D | l2_packet_winpcap.c | 112 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 D | 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/kernel-headers/original/linux/ |
H A D | if_ether.h | 117 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 D | if_arcnet.h | 86 struct ethhdr eth; /* standard ethernet header (yuck!) */
|
/external/ppp/pppd/plugins/rp-pppoe/ |
H A D | pppoe.h | 81 #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 D | if.c | 552 data_size = size - sizeof(struct ethhdr); 556 memcpy((char *)xmitbuf, (char *)pkt + sizeof(struct ethhdr), data_size);
|
/external/iproute2/include/linux/ |
H A D | if_ether.h | 117 struct ethhdr { struct
|
/external/qemu/slirp/ |
H A D | slirp.c | 573 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 D | slirp.c | 654 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