Home
last modified time | relevance | path

Searched refs:eth (Results 1 – 25 of 35) sorted by relevance

12

/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_pcap.c31 eth_t *eth; member
55 l2->eth = eth_open(l2->ifname); in l2_packet_init_libdnet()
56 if (!l2->eth) { in l2_packet_init_libdnet()
62 if (eth_get(l2->eth, &own_addr) < 0) { in l2_packet_init_libdnet()
66 eth_close(l2->eth); in l2_packet_init_libdnet()
67 l2->eth = NULL; in l2_packet_init_libdnet()
81 struct l2_ethhdr *eth; in l2_packet_send() local
90 ret = eth_send(l2->eth, buf, len); in l2_packet_send()
93 size_t mlen = sizeof(*eth) + len; in l2_packet_send()
94 eth = os_malloc(mlen); in l2_packet_send()
[all …]
Dl2_packet_freebsd.c60 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len); in l2_packet_send() local
61 if (eth == NULL) in l2_packet_send()
63 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); in l2_packet_send()
64 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send()
65 eth->h_proto = htons(proto); in l2_packet_send()
66 os_memcpy(eth + 1, buf, len); in l2_packet_send()
67 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); in l2_packet_send()
68 os_free(eth); in l2_packet_send()
Dl2_packet_winpcap.c76 struct l2_ethhdr *eth; in l2_packet_send() local
84 size_t mlen = sizeof(*eth) + len; in l2_packet_send()
85 eth = os_malloc(mlen); in l2_packet_send()
86 if (eth == NULL) in l2_packet_send()
89 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); in l2_packet_send()
90 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send()
91 eth->h_proto = htons(proto); in l2_packet_send()
92 os_memcpy(eth + 1, buf, len); in l2_packet_send()
93 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); in l2_packet_send()
94 os_free(eth); in l2_packet_send()
Dl2_packet_ndis.c96 struct l2_ethhdr *eth; in l2_packet_send() local
116 size_t mlen = sizeof(*eth) + len; in l2_packet_send()
117 eth = os_malloc(mlen); in l2_packet_send()
118 if (eth == NULL) in l2_packet_send()
121 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN); in l2_packet_send()
122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send()
123 eth->h_proto = htons(proto); in l2_packet_send()
124 os_memcpy(eth + 1, buf, len); in l2_packet_send()
125 res = WriteFile(driver_ndis_get_ndisuio_handle(), eth, mlen, in l2_packet_send()
127 os_free(eth); in l2_packet_send()
/external/wpa_supplicant_8/src/drivers/
Ddriver_test.c179 struct l2_ethhdr eth; in test_driver_send_eapol() local
197 memcpy(eth.h_dest, addr, ETH_ALEN); in test_driver_send_eapol()
198 memcpy(eth.h_source, own_addr, ETH_ALEN); in test_driver_send_eapol()
199 eth.h_proto = host_to_be16(ETH_P_EAPOL); in test_driver_send_eapol()
203 io[1].iov_base = &eth; in test_driver_send_eapol()
204 io[1].iov_len = sizeof(eth); in test_driver_send_eapol()
224 struct l2_ethhdr eth; in test_driver_send_ether() local
241 memcpy(eth.h_dest, dst, ETH_ALEN); in test_driver_send_ether()
242 memcpy(eth.h_source, src, ETH_ALEN); in test_driver_send_ether()
243 eth.h_proto = host_to_be16(proto); in test_driver_send_ether()
[all …]
Ddriver_madwifi.c1087 struct l2_ethhdr *eth; in madwifi_send_eapol() local
1106 eth = (struct l2_ethhdr *) bp; in madwifi_send_eapol()
1107 memcpy(eth->h_dest, addr, ETH_ALEN); in madwifi_send_eapol()
1108 memcpy(eth->h_source, own_addr, ETH_ALEN); in madwifi_send_eapol()
1109 eth->h_proto = host_to_be16(ETH_P_EAPOL); in madwifi_send_eapol()
1110 memcpy(eth+1, data, data_len); in madwifi_send_eapol()
/external/kernel-headers/original/linux/
Dif_arcnet.h86 struct ethhdr eth; /* standard ethernet header (yuck!) */ member
/external/qemu/pc-bios/keymaps/
Dfo53 eth 0x1b addupper
Des62 eth 0x20 altgr
Dit70 eth 0x20 altgr
Dpt70 eth 0x20 altgr
Dde-ch139 eth 0x20 altgr inhibit
Dde72 eth 0x20 altgr
Dfr-ch72 eth 0x20 altgr
Dsl72 eth 0x20 altgr
Dfr117 eth 0x20 altgr
Dno74 eth 0x20 altgr
Dtr73 eth 0x20 altgr
Dhr74 eth 0x20 altgr
Dda72 eth 0x20 altgr
Dpl72 eth 0x20 altgr
Dfi73 eth 0x20 altgr
Den-gb70 eth 0x20 altgr
/external/kernel-headers/original/asm-mips/ip32/
Dmace.h353 struct mace_ethernet eth; member
/external/wpa_supplicant_8/wpa_supplicant/
Dwpa_supplicant.c2379 const struct l2_ethhdr *eth; in wpa_supplicant_rx_eapol_bridge() local
2381 if (len < sizeof(*eth)) in wpa_supplicant_rx_eapol_bridge()
2383 eth = (const struct l2_ethhdr *) buf; in wpa_supplicant_rx_eapol_bridge()
2385 if (os_memcmp(eth->h_dest, wpa_s->own_addr, ETH_ALEN) != 0 && in wpa_supplicant_rx_eapol_bridge()
2386 !(eth->h_dest[0] & 0x01)) { in wpa_supplicant_rx_eapol_bridge()
2389 MAC2STR(src_addr), MAC2STR(eth->h_dest)); in wpa_supplicant_rx_eapol_bridge()
2394 " (bridge)", MAC2STR(src_addr), MAC2STR(eth->h_dest)); in wpa_supplicant_rx_eapol_bridge()
2395 wpa_supplicant_rx_eapol(wpa_s, src_addr, buf + sizeof(*eth), in wpa_supplicant_rx_eapol_bridge()
2396 len - sizeof(*eth)); in wpa_supplicant_rx_eapol_bridge()

12