Searched defs:eth (Results 1 - 25 of 26) sorted by relevance

12

/external/kernel-headers/original/linux/
H A Dif_arcnet.h86 struct ethhdr eth; /* standard ethernet header (yuck!) */ member in struct:arc_eth_encap
/external/wpa_supplicant_8/hostapd/src/l2_packet/
H A Dl2_packet_freebsd.c60 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len); local
61 if (eth == NULL)
63 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
64 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
65 eth->h_proto = htons(proto);
66 os_memcpy(eth + 1, buf, len);
67 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth));
68 os_free(eth);
[all...]
H A Dl2_packet_ndis.c96 struct l2_ethhdr *eth; local
116 size_t mlen = sizeof(*eth) + len;
117 eth = os_malloc(mlen);
118 if (eth == NULL)
121 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
123 eth->h_proto = htons(proto);
124 os_memcpy(eth + 1, buf, len);
125 res = WriteFile(driver_ndis_get_ndisuio_handle(), eth, mlen,
127 os_free(eth);
[all...]
H A Dl2_packet_pcap.c31 eth_t *eth; member in struct:l2_packet_data
55 l2->eth = eth_open(l2->ifname);
56 if (!l2->eth) {
62 if (eth_get(l2->eth, &own_addr) < 0) {
66 eth_close(l2->eth);
67 l2->eth = NULL;
81 struct l2_ethhdr *eth; local
90 ret = eth_send(l2->eth, buf, len);
93 size_t mlen = sizeof(*eth) + len;
94 eth
[all...]
H A Dl2_packet_winpcap.c76 struct l2_ethhdr *eth; local
84 size_t mlen = sizeof(*eth) + len;
85 eth = os_malloc(mlen);
86 if (eth == NULL)
89 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
90 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
91 eth->h_proto = htons(proto);
92 os_memcpy(eth + 1, buf, len);
93 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen);
94 os_free(eth);
[all...]
/external/wpa_supplicant_8/src/l2_packet/
H A Dl2_packet_freebsd.c60 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len); local
61 if (eth == NULL)
63 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
64 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
65 eth->h_proto = htons(proto);
66 os_memcpy(eth + 1, buf, len);
67 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth));
68 os_free(eth);
[all...]
H A Dl2_packet_ndis.c96 struct l2_ethhdr *eth; local
116 size_t mlen = sizeof(*eth) + len;
117 eth = os_malloc(mlen);
118 if (eth == NULL)
121 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
123 eth->h_proto = htons(proto);
124 os_memcpy(eth + 1, buf, len);
125 res = WriteFile(driver_ndis_get_ndisuio_handle(), eth, mlen,
127 os_free(eth);
[all...]
H A Dl2_packet_pcap.c31 eth_t *eth; member in struct:l2_packet_data
55 l2->eth = eth_open(l2->ifname);
56 if (!l2->eth) {
62 if (eth_get(l2->eth, &own_addr) < 0) {
66 eth_close(l2->eth);
67 l2->eth = NULL;
81 struct l2_ethhdr *eth; local
90 ret = eth_send(l2->eth, buf, len);
93 size_t mlen = sizeof(*eth) + len;
94 eth
[all...]
H A Dl2_packet_winpcap.c76 struct l2_ethhdr *eth; local
84 size_t mlen = sizeof(*eth) + len;
85 eth = os_malloc(mlen);
86 if (eth == NULL)
89 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
90 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
91 eth->h_proto = htons(proto);
92 os_memcpy(eth + 1, buf, len);
93 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen);
94 os_free(eth);
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/l2_packet/
H A Dl2_packet_freebsd.c60 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len); local
61 if (eth == NULL)
63 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
64 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
65 eth->h_proto = htons(proto);
66 os_memcpy(eth + 1, buf, len);
67 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth));
68 os_free(eth);
[all...]
H A Dl2_packet_ndis.c96 struct l2_ethhdr *eth; local
116 size_t mlen = sizeof(*eth) + len;
117 eth = os_malloc(mlen);
118 if (eth == NULL)
121 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
123 eth->h_proto = htons(proto);
124 os_memcpy(eth + 1, buf, len);
125 res = WriteFile(driver_ndis_get_ndisuio_handle(), eth, mlen,
127 os_free(eth);
[all...]
H A Dl2_packet_pcap.c31 eth_t *eth; member in struct:l2_packet_data
55 l2->eth = eth_open(l2->ifname);
56 if (!l2->eth) {
62 if (eth_get(l2->eth, &own_addr) < 0) {
66 eth_close(l2->eth);
67 l2->eth = NULL;
81 struct l2_ethhdr *eth; local
90 ret = eth_send(l2->eth, buf, len);
93 size_t mlen = sizeof(*eth) + len;
94 eth
[all...]
H A Dl2_packet_winpcap.c76 struct l2_ethhdr *eth; local
84 size_t mlen = sizeof(*eth) + len;
85 eth = os_malloc(mlen);
86 if (eth == NULL)
89 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
90 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
91 eth->h_proto = htons(proto);
92 os_memcpy(eth + 1, buf, len);
93 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen);
94 os_free(eth);
[all...]
/external/iputils/Modules/
H A Dpg3.c242 __u8 *eth; local
256 eth = (__u8 *) skb_push(skb, 14);
261 memcpy(eth, hh, 14);
/external/wpa_supplicant_8/hostapd/src/drivers/
H A Ddriver_madwifi.c1087 struct l2_ethhdr *eth; local
1106 eth = (struct l2_ethhdr *) bp;
1107 memcpy(eth->h_dest, addr, ETH_ALEN);
1108 memcpy(eth->h_source, own_addr, ETH_ALEN);
1109 eth->h_proto = host_to_be16(ETH_P_EAPOL);
1110 memcpy(eth+1, data, data_len);
H A Ddriver_atheros.c1579 struct l2_ethhdr *eth; local
1598 eth = (struct l2_ethhdr *) bp;
1599 memcpy(eth->h_dest, addr, ETH_ALEN);
1600 memcpy(eth->h_source, own_addr, ETH_ALEN);
1601 eth->h_proto = host_to_be16(ETH_P_EAPOL);
1602 memcpy(eth+1, data, data_len);
H A Ddriver_test.c179 struct l2_ethhdr eth; local
197 memcpy(eth.h_dest, addr, ETH_ALEN);
198 memcpy(eth.h_source, own_addr, ETH_ALEN);
199 eth.h_proto = host_to_be16(ETH_P_EAPOL);
203 io[1].iov_base = &eth;
204 io[1].iov_len = sizeof(eth);
224 struct l2_ethhdr eth; local
241 memcpy(eth.h_dest, dst, ETH_ALEN);
242 memcpy(eth.h_source, src, ETH_ALEN);
243 eth
726 struct l2_ethhdr *eth; local
2399 struct l2_ethhdr eth; local
[all...]
/external/wpa_supplicant_8/src/drivers/
H A Ddriver_madwifi.c1087 struct l2_ethhdr *eth; local
1106 eth = (struct l2_ethhdr *) bp;
1107 memcpy(eth->h_dest, addr, ETH_ALEN);
1108 memcpy(eth->h_source, own_addr, ETH_ALEN);
1109 eth->h_proto = host_to_be16(ETH_P_EAPOL);
1110 memcpy(eth+1, data, data_len);
H A Ddriver_atheros.c1579 struct l2_ethhdr *eth; local
1598 eth = (struct l2_ethhdr *) bp;
1599 memcpy(eth->h_dest, addr, ETH_ALEN);
1600 memcpy(eth->h_source, own_addr, ETH_ALEN);
1601 eth->h_proto = host_to_be16(ETH_P_EAPOL);
1602 memcpy(eth+1, data, data_len);
H A Ddriver_test.c179 struct l2_ethhdr eth; local
197 memcpy(eth.h_dest, addr, ETH_ALEN);
198 memcpy(eth.h_source, own_addr, ETH_ALEN);
199 eth.h_proto = host_to_be16(ETH_P_EAPOL);
203 io[1].iov_base = &eth;
204 io[1].iov_len = sizeof(eth);
224 struct l2_ethhdr eth; local
241 memcpy(eth.h_dest, dst, ETH_ALEN);
242 memcpy(eth.h_source, src, ETH_ALEN);
243 eth
726 struct l2_ethhdr *eth; local
2399 struct l2_ethhdr eth; local
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/drivers/
H A Ddriver_madwifi.c1087 struct l2_ethhdr *eth; local
1106 eth = (struct l2_ethhdr *) bp;
1107 memcpy(eth->h_dest, addr, ETH_ALEN);
1108 memcpy(eth->h_source, own_addr, ETH_ALEN);
1109 eth->h_proto = host_to_be16(ETH_P_EAPOL);
1110 memcpy(eth+1, data, data_len);
H A Ddriver_atheros.c1579 struct l2_ethhdr *eth; local
1598 eth = (struct l2_ethhdr *) bp;
1599 memcpy(eth->h_dest, addr, ETH_ALEN);
1600 memcpy(eth->h_source, own_addr, ETH_ALEN);
1601 eth->h_proto = host_to_be16(ETH_P_EAPOL);
1602 memcpy(eth+1, data, data_len);
H A Ddriver_test.c179 struct l2_ethhdr eth; local
197 memcpy(eth.h_dest, addr, ETH_ALEN);
198 memcpy(eth.h_source, own_addr, ETH_ALEN);
199 eth.h_proto = host_to_be16(ETH_P_EAPOL);
203 io[1].iov_base = &eth;
204 io[1].iov_len = sizeof(eth);
224 struct l2_ethhdr eth; local
241 memcpy(eth.h_dest, dst, ETH_ALEN);
242 memcpy(eth.h_source, src, ETH_ALEN);
243 eth
726 struct l2_ethhdr *eth; local
2399 struct l2_ethhdr eth; local
[all...]
/external/kernel-headers/original/asm-mips/ip32/
H A Dmace.h353 struct mace_ethernet eth; member in struct:sgi_mace
/external/wpa_supplicant_8/wpa_supplicant/
H A Dwpa_supplicant.c2388 const struct l2_ethhdr *eth; local
2390 if (len < sizeof(*eth))
2392 eth = (const struct l2_ethhdr *) buf;
2394 if (os_memcmp(eth->h_dest, wpa_s->own_addr, ETH_ALEN) != 0 &&
2395 !(eth->h_dest[0] & 0x01)) {
2398 MAC2STR(src_addr), MAC2STR(eth->h_dest));
2403 " (bridge)", MAC2STR(src_addr), MAC2STR(eth->h_dest));
2404 wpa_supplicant_rx_eapol(wpa_s, src_addr, buf + sizeof(*eth),
2405 len - sizeof(*eth));

Completed in 428 milliseconds

12