/third_party/wpa_supplicant/wpa_supplicant-2.9/src/l2_packet/ |
H A D | l2_packet_pcap.c | 31 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() 63 if (eth_get(l2->eth, &own_addr) < 0) { in l2_packet_init_libdnet() 67 eth_close(l2->eth); in l2_packet_init_libdnet() 68 l2->eth = NULL; in l2_packet_init_libdnet() 82 struct l2_ethhdr *eth; in l2_packet_send() local 91 ret = eth_send(l2->eth, buf, len); in l2_packet_send() 94 size_t mlen = sizeof(*eth) + len; in l2_packet_send() 95 eth in l2_packet_send() [all...] |
H A D | l2_packet_freebsd.c | 60 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() [all...] |
H A D | l2_packet_winpcap.c | 76 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() [all...] |
H A D | l2_packet_ndis.c | 96 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() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/l2_packet/ |
H A D | l2_packet_pcap.c | 31 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() 63 if (eth_get(l2->eth, &own_addr) < 0) { in l2_packet_init_libdnet() 67 eth_close(l2->eth); in l2_packet_init_libdnet() 68 l2->eth = NULL; in l2_packet_init_libdnet() 82 struct l2_ethhdr *eth; in l2_packet_send() local 91 ret = eth_send(l2->eth, buf, len); in l2_packet_send() 94 size_t mlen = sizeof(*eth) + len; in l2_packet_send() 95 eth in l2_packet_send() [all...] |
H A D | l2_packet_freebsd.c | 60 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() [all...] |
H A D | l2_packet_winpcap.c | 76 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() [all...] |
H A D | l2_packet_ndis.c | 96 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() [all...] |
H A D | l2_packet_linux.c | 241 const struct l2_ethhdr *eth = (const struct l2_ethhdr *) buf; in l2_packet_receive() local 249 (os_memcmp(eth->h_dest, l2->own_addr, ETH_ALEN) == 0 || in l2_packet_receive() 250 is_multicast_ether_addr(eth->h_dest))) { in l2_packet_receive()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/hostapd/ |
H A D | ap_ctrl_iface.c | 1829 const struct ether_header *eth; in hostapd_data_test_rx() local 1835 if (len < sizeof(*eth) + sizeof(ip) || len > HWSIM_PACKETLEN) { in hostapd_data_test_rx() 1842 eth = (const struct ether_header *) buf; in hostapd_data_test_rx() 1843 os_memcpy(&ip, eth + 1, sizeof(ip)); in hostapd_data_test_rx() 1844 pos = &buf[sizeof(*eth) + sizeof(ip)]; in hostapd_data_test_rx() 1866 MAC2STR(eth->ether_dhost), MAC2STR(eth->ether_shost), extra); in hostapd_data_test_rx() 1916 struct ether_header *eth; in hostapd_ctrl_iface_data_test_tx() local 1952 eth = (struct ether_header *) &buf[2]; in hostapd_ctrl_iface_data_test_tx() 1953 os_memcpy(eth in hostapd_ctrl_iface_data_test_tx() 1986 struct ether_header *eth; hostapd_ctrl_iface_data_test_frame() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hostapd/ |
H A D | ap_ctrl_iface.c | 2023 const struct ether_header *eth; in hostapd_data_test_rx() local 2029 if (len < sizeof(*eth) + sizeof(ip) || len > HWSIM_PACKETLEN) { in hostapd_data_test_rx() 2036 eth = (const struct ether_header *) buf; in hostapd_data_test_rx() 2037 os_memcpy(&ip, eth + 1, sizeof(ip)); in hostapd_data_test_rx() 2038 pos = &buf[sizeof(*eth) + sizeof(ip)]; in hostapd_data_test_rx() 2060 MAC2STR(eth->ether_dhost), MAC2STR(eth->ether_shost), extra); in hostapd_data_test_rx() 2062 MAC2STR_SEC(eth->ether_dhost), MAC2STR_SEC(eth->ether_shost), extra); in hostapd_data_test_rx() 2112 struct ether_header *eth; in hostapd_ctrl_iface_data_test_tx() local 2184 struct ether_header *eth; hostapd_ctrl_iface_data_test_frame() local [all...] |
/third_party/ltp/testcases/network/stress/route/ |
H A D | route4-rmmod | 167 for ifname in `ifconfig | grep ^eth | awk '{ print $1}'`; do
|
H A D | route6-rmmod | 163 for ifname in `ifconfig | grep ^eth | awk '{ print $1}'`; do
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
H A D | driver_atheros.c | 1664 struct l2_ethhdr *eth; in atheros_send_eapol() local 1684 eth = (struct l2_ethhdr *) bp; in atheros_send_eapol() 1685 os_memcpy(eth->h_dest, addr, ETH_ALEN); in atheros_send_eapol() 1686 os_memcpy(eth->h_source, own_addr, ETH_ALEN); in atheros_send_eapol() 1687 eth->h_proto = host_to_be16(ETH_P_EAPOL); in atheros_send_eapol() 1688 os_memcpy(eth + 1, data, data_len); in atheros_send_eapol()
|
H A D | driver.h | 4061 * @eth: Ethernet frame to be sent 4065 int (*probe_mesh_link)(void *priv, const u8 *addr, const u8 *eth,
|
H A D | driver_nl80211.c | 9732 static int nl80211_probe_mesh_link(void *priv, const u8 *addr, const u8 *eth, in nl80211_probe_mesh_link() argument 9743 nla_put(msg, NL80211_ATTR_FRAME, len, eth)) { in nl80211_probe_mesh_link()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/ |
H A D | driver_atheros.c | 1653 struct l2_ethhdr *eth; in atheros_send_eapol() local 1673 eth = (struct l2_ethhdr *) bp; in atheros_send_eapol() 1674 os_memcpy(eth->h_dest, addr, ETH_ALEN); in atheros_send_eapol() 1675 os_memcpy(eth->h_source, own_addr, ETH_ALEN); in atheros_send_eapol() 1676 eth->h_proto = host_to_be16(ETH_P_EAPOL); in atheros_send_eapol() 1677 os_memcpy(eth + 1, data, data_len); in atheros_send_eapol()
|
H A D | driver.h | 4484 * @eth: Ethernet frame to be sent 4488 int (*probe_mesh_link)(void *priv, const u8 *addr, const u8 *eth,
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
H A D | ctrl_iface.c | 3200 struct ether_header *eth; in wpa_supplicant_ctrl_iface_mesh_link_probe() local 3225 eth = (struct ether_header *) buf; in wpa_supplicant_ctrl_iface_mesh_link_probe() 3226 os_memcpy(eth->ether_dhost, addr, ETH_ALEN); in wpa_supplicant_ctrl_iface_mesh_link_probe() 3227 os_memcpy(eth->ether_shost, wpa_s->own_addr, ETH_ALEN); in wpa_supplicant_ctrl_iface_mesh_link_probe() 3228 eth->ether_type = htons(ETH_P_802_3); in wpa_supplicant_ctrl_iface_mesh_link_probe() 8970 const struct ether_header *eth; in wpas_data_test_rx() local 8976 if (len < sizeof(*eth) + sizeof(ip) || len > HWSIM_PACKETLEN) { in wpas_data_test_rx() 8983 eth = (const struct ether_header *) buf; in wpas_data_test_rx() 8984 os_memcpy(&ip, eth + 1, sizeof(ip)); in wpas_data_test_rx() 8985 pos = &buf[sizeof(*eth) in wpas_data_test_rx() 9055 struct ether_header *eth; wpas_ctrl_iface_data_test_tx() local 9125 struct ether_header *eth; wpas_ctrl_iface_data_test_frame() local [all...] |
H A D | driver_i.h | 92 const u8 *eth, size_t len) in wpa_drv_mesh_link_probe() 96 eth, len); in wpa_drv_mesh_link_probe() 90 wpa_drv_mesh_link_probe(struct wpa_supplicant *wpa_s, const u8 *addr, const u8 *eth, size_t len) wpa_drv_mesh_link_probe() argument
|
H A D | wpa_supplicant.c | 4388 const struct l2_ethhdr *eth; local 4390 if (len < sizeof(*eth)) 4392 eth = (const struct l2_ethhdr *) buf; 4394 if (os_memcmp(eth->h_dest, wpa_s->own_addr, ETH_ALEN) != 0 && 4395 !(eth->h_dest[0] & 0x01)) { 4398 MAC2STR(src_addr), MAC2STR(eth->h_dest)); 4403 " (bridge)", MAC2STR(src_addr), MAC2STR(eth->h_dest)); 4404 wpa_supplicant_rx_eapol(wpa_s, src_addr, buf + sizeof(*eth), 4405 len - sizeof(*eth));
|
/third_party/ltp/testcases/lib/ |
H A D | tst_net.sh | 391 for eth in $(tst_get_ifaces $type); do 393 local addr_path="/sys/class/net/${eth}/address"
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
H A D | ctrl_iface.c | 3577 struct ether_header *eth; local 3602 eth = (struct ether_header *) buf; 3603 os_memcpy(eth->ether_dhost, addr, ETH_ALEN); 3604 os_memcpy(eth->ether_shost, wpa_s->own_addr, ETH_ALEN); 3605 eth->ether_type = htons(ETH_P_802_3); 10094 const struct ether_header *eth; local 10100 if (len < sizeof(*eth) + sizeof(ip) || len > HWSIM_PACKETLEN) { 10107 eth = (const struct ether_header *) buf; 10108 os_memcpy(&ip, eth + 1, sizeof(ip)); 10109 pos = &buf[sizeof(*eth) 10180 struct ether_header *eth; global() local 10252 struct ether_header *eth; global() local [all...] |
H A D | driver_i.h | 95 const u8 *eth, size_t len) in wpa_drv_mesh_link_probe() 99 eth, len); in wpa_drv_mesh_link_probe() 93 wpa_drv_mesh_link_probe(struct wpa_supplicant *wpa_s, const u8 *addr, const u8 *eth, size_t len) wpa_drv_mesh_link_probe() argument
|
H A D | wpa_supplicant.c | 5539 const struct l2_ethhdr *eth; local 5541 if (len < sizeof(*eth)) 5543 eth = (const struct l2_ethhdr *) buf; 5545 if (os_memcmp(eth->h_dest, wpa_s->own_addr, ETH_ALEN) != 0 && 5546 !(eth->h_dest[0] & 0x01)) { 5549 MAC2STR(src_addr), MAC2STR(eth->h_dest)); 5552 MAC2STR_SEC(src_addr), MAC2STR_SEC(eth->h_dest)); 5557 " (bridge)", MAC2STR(src_addr), MAC2STR(eth->h_dest)); 5559 " (bridge)", MAC2STR_SEC(src_addr), MAC2STR_SEC(eth->h_dest)); 5560 wpa_supplicant_rx_eapol(wpa_s, src_addr, buf + sizeof(*eth), [all...] |