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

12

/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/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/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...]
/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...]
/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...]
/external/wpa_supplicant_8/hostapd/src/l2_packet/
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_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_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;
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_8/src/l2_packet/
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_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_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;
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_8/wpa_supplicant/src/l2_packet/
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_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_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;
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/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...]
H A Dundiif.c243 struct eth_hdr *ethhdr, char dir, char status,
246 u8_t *d = ethhdr->dest.addr;
247 u8_t *s = ethhdr->src.addr;
254 (unsigned)htons(ethhdr->type),
259 struct eth_hdr *ethhdr, char dir,
265 if (ntohs(ethhdr->type) == ETHTYPE_ARP) {
266 arphdr = (struct etharp_hdr *)((void *)ethhdr + 14);
290 struct eth_hdr *ethhdr, char dir,
294 if (ntohs(ethhdr->type) == ETHTYPE_IP) {
295 iphdr = (struct ip_hdr *)((void *)ethhdr
242 snprintf_eth_hdr(char *str, size_t size, char head[], struct eth_hdr *ethhdr, char dir, char status, char tail[]) argument
258 snprintf_arp_hdr(char *str, size_t size, char head[], struct eth_hdr *ethhdr, char dir, char status, char tail[]) argument
289 snprintf_ip_hdr(char *str, size_t size, char head[], struct eth_hdr *ethhdr, char dir, char status, char tail[]) argument
313 snprintf_icmp_hdr(char *str, size_t size, char head[], struct eth_hdr *ethhdr, char dir, char status, char tail[]) argument
338 snprintf_tcp_hdr(char *str, size_t size, char head[], struct eth_hdr *ethhdr, char dir, char status, char tail[]) argument
364 snprintf_udp_hdr(char *str, size_t size, char head[], struct eth_hdr *ethhdr, char dir, char status, char tail[]) argument
481 struct eth_hdr *ethhdr = pbuf->payload; local
1465 struct eth_hdr *ethhdr = p->payload; local
[all...]
H A Dethernetif.c227 struct eth_hdr *ethhdr;
237 ethhdr = p->payload;
239 switch (htons(ethhdr->type)) {
/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/kernel-headers/original/uapi/linux/
H A Dif_arcnet.h81 struct ethhdr eth; /* standard ethernet header (yuck!) */
/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...]
/external/ltp/testcases/network/stress/ns-tools/
H A Dns-icmp_redirector.c323 sndeth_size = sizeof(struct ethhdr) + sizeof(struct arp_datagram);
389 sndeth_size = sizeof(struct ethhdr) /* Ether header */
392 +rcveth_size - sizeof(struct ethhdr); /* ICMPv4 payload */
408 sndip_p->hdr.tot_len = htons(sndeth_size - sizeof(struct ethhdr));
426 icmp4_datasize = rcveth_size - sizeof(struct ethhdr);
515 sndeth_size = sizeof(struct ethhdr) + sizeof(struct ip6_hdr)
616 + rcveth_size - sizeof(struct ethhdr);
620 sndeth_size = sizeof(struct ethhdr) + sizeof(struct ip6_hdr)

Completed in 366 milliseconds

12