Home
last modified time | relevance | path

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

12

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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()
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 = 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()
Dl2_packet_linux.c185 const struct l2_ethhdr *eth = (const struct l2_ethhdr *) buf; in l2_packet_receive() local
193 (os_memcmp(eth->h_dest, l2->own_addr, ETH_ALEN) == 0 || in l2_packet_receive()
194 is_multicast_ether_addr(eth->h_dest))) { in l2_packet_receive()
/third_party/wpa_supplicant/wpa_supplicant-2.9/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()
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 = 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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/hostapd/
Dap_ctrl_iface.c1829 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->ether_dhost, dst, ETH_ALEN); in hostapd_ctrl_iface_data_test_tx()
1954 os_memcpy(eth->ether_shost, src, ETH_ALEN); in hostapd_ctrl_iface_data_test_tx()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hostapd/
Dap_ctrl_iface.c2023 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
2148 eth = (struct ether_header *) &buf[2]; in hostapd_ctrl_iface_data_test_tx()
2149 os_memcpy(eth->ether_dhost, dst, ETH_ALEN); in hostapd_ctrl_iface_data_test_tx()
[all …]
/third_party/ltp/testcases/network/stress/route/
Droute6-rmmod163 for ifname in `ifconfig | grep ^eth | awk '{ print $1}'`; do
Droute4-rmmod167 for ifname in `ifconfig | grep ^eth | awk '{ print $1}'`; do
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
Ddriver_atheros.c1664 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()
Ddriver.h4065 int (*probe_mesh_link)(void *priv, const u8 *addr, const u8 *eth,
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
Ddriver_atheros.c1653 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()
Ddriver.h4371 int (*probe_mesh_link)(void *priv, const u8 *addr, const u8 *eth,
/third_party/ltp/testcases/lib/
Dtst_net.sh326 for eth in $(tst_get_ifaces $type); do
328 local addr_path="/sys/class/net/${eth}/address"
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dctrl_iface.c3200 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) + sizeof(ip)]; in wpas_data_test_rx()
[all …]
Ddriver_i.h92 const u8 *eth, size_t len) in wpa_drv_mesh_link_probe() argument
96 eth, len); in wpa_drv_mesh_link_probe()
Dwpa_supplicant.c4388 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/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dctrl_iface.c3398 struct ether_header *eth; in wpa_supplicant_ctrl_iface_mesh_link_probe() local
3423 eth = (struct ether_header *) buf; in wpa_supplicant_ctrl_iface_mesh_link_probe()
3424 os_memcpy(eth->ether_dhost, addr, ETH_ALEN); in wpa_supplicant_ctrl_iface_mesh_link_probe()
3425 os_memcpy(eth->ether_shost, wpa_s->own_addr, ETH_ALEN); in wpa_supplicant_ctrl_iface_mesh_link_probe()
3426 eth->ether_type = htons(ETH_P_802_3); in wpa_supplicant_ctrl_iface_mesh_link_probe()
9719 const struct ether_header *eth; in wpas_data_test_rx() local
9725 if (len < sizeof(*eth) + sizeof(ip) || len > HWSIM_PACKETLEN) { in wpas_data_test_rx()
9732 eth = (const struct ether_header *) buf; in wpas_data_test_rx()
9733 os_memcpy(&ip, eth + 1, sizeof(ip)); in wpas_data_test_rx()
9734 pos = &buf[sizeof(*eth) + sizeof(ip)]; in wpas_data_test_rx()
[all …]
Ddriver_i.h95 const u8 *eth, size_t len) in wpa_drv_mesh_link_probe() argument
99 eth, len); in wpa_drv_mesh_link_probe()
Dwpa_supplicant.c5299 const struct l2_ethhdr *eth; local
5301 if (len < sizeof(*eth))
5303 eth = (const struct l2_ethhdr *) buf;
5305 if (os_memcmp(eth->h_dest, wpa_s->own_addr, ETH_ALEN) != 0 &&
5306 !(eth->h_dest[0] & 0x01)) {
5309 MAC2STR(src_addr), MAC2STR(eth->h_dest));
5312 MAC2STR_SEC(src_addr), MAC2STR_SEC(eth->h_dest));
5317 " (bridge)", MAC2STR(src_addr), MAC2STR(eth->h_dest));
5319 " (bridge)", MAC2STR_SEC(src_addr), MAC2STR_SEC(eth->h_dest));
5320 wpa_supplicant_rx_eapol(wpa_s, src_addr, buf + sizeof(*eth),
[all …]
/third_party/typescript/src/compiler/transformers/
Djsx.ts646 eth: 0x00F0,

12