Home
last modified time | relevance | path

Searched refs:own_addr (Results 1 – 25 of 172) sorted by relevance

1234567

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/l2_packet/
Dl2_packet_rtos.c19 u8 own_addr[ETH_ALEN]; member
32 if (memcpy_s(addr, sizeof(l2->own_addr), l2->own_addr, sizeof(l2->own_addr)) != EOK){ in l2_packet_get_own_addr()
47 ret = WifiEapolPacketSend(l2->ifname, l2->own_addr, dst_addr, (unsigned char *)buf, len); in l2_packet_send()
88 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument
95 (void)own_addr; in l2_packet_init()
116 (void)WifiCmdGetOwnMac(l2->ifname, (char *)l2->own_addr, ETH_ALEN); in l2_packet_init()
122 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument
129 return l2_packet_init(br_ifname, own_addr, protocol, rx_callback, in l2_packet_init_bridge()
Dl2_packet_pcap.c34 u8 own_addr[ETH_ALEN]; member
45 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr()
53 eth_addr_t own_addr; in l2_packet_init_libdnet() local
63 if (eth_get(l2->eth, &own_addr) < 0) { in l2_packet_init_libdnet()
71 os_memcpy(l2->own_addr, own_addr.data, ETH_ALEN); in l2_packet_init_libdnet()
100 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send()
236 MAC2STR(l2->own_addr), /* do not receive own packets */ in l2_packet_init_libpcap()
237 MAC2STR(l2->own_addr), MAC2STR(pae_group_addr), in l2_packet_init_libpcap()
280 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument
296 if (own_addr) in l2_packet_init()
[all …]
Dl2_packet_winpcap.c51 u8 own_addr[ETH_ALEN]; member
67 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr()
90 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send()
179 MAC2STR(l2->own_addr), /* do not receive own packets */ in l2_packet_init_libpcap()
180 MAC2STR(l2->own_addr), MAC2STR(pae_group_addr), in l2_packet_init_libpcap()
199 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument
219 if (own_addr) in l2_packet_init()
220 os_memcpy(l2->own_addr, own_addr, ETH_ALEN); in l2_packet_init()
255 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument
261 return l2_packet_init(br_ifname, own_addr, protocol, rx_callback, in l2_packet_init_bridge()
Dl2_packet_freebsd.c39 u8 own_addr[ETH_ALEN]; member
50 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr()
64 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send()
126 MAC2STR(l2->own_addr), /* do not receive own packets */ in l2_packet_init_libpcap()
127 MAC2STR(l2->own_addr), MAC2STR(pae_group_addr), in l2_packet_init_libpcap()
228 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument
243 if (eth_get(l2->ifname, l2->own_addr) < 0) { in l2_packet_init()
260 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument
266 return l2_packet_init(br_ifname, own_addr, protocol, rx_callback, in l2_packet_init_bridge()
Dl2_packet_none.c20 u8 own_addr[ETH_ALEN]; member
32 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr()
68 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument
95 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument
101 return l2_packet_init(br_ifname, own_addr, protocol, rx_callback, in l2_packet_init_bridge()
Dl2_packet_ndis.c69 u8 own_addr[ETH_ALEN]; member
86 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr()
122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send()
350 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument
380 if (own_addr) in l2_packet_init()
381 os_memcpy(l2->own_addr, own_addr, ETH_ALEN); in l2_packet_init()
455 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument
461 return l2_packet_init(br_ifname, own_addr, protocol, rx_callback, in l2_packet_init_bridge()
Dl2_packet_privsep.c23 u8 own_addr[ETH_ALEN]; member
57 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr()
129 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument
217 os_memcpy(l2->own_addr, reply, ETH_ALEN); in l2_packet_init()
236 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument
242 return l2_packet_init(br_ifname, own_addr, protocol, rx_callback, in l2_packet_init_bridge()
Dl2_packet_linux.c31 u8 own_addr[ETH_ALEN]; member
115 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr()
154 os_memcpy(pos, l2->own_addr, ETH_ALEN); in l2_packet_send()
248 (os_memcmp(eth->h_dest, l2->own_addr, ETH_ALEN) == 0 || in l2_packet_receive()
313 if (os_memcmp(ll.sll_addr, l2->own_addr, ETH_ALEN) == 0) { in l2_packet_receive_br()
341 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument
405 os_memcpy(l2->own_addr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); in l2_packet_init()
415 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument
440 l2 = l2_packet_init(br_ifname, own_addr, protocol, rx_callback, in l2_packet_init_bridge()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/l2_packet/
Dl2_packet_rtos.c19 u8 own_addr[ETH_ALEN]; member
32 if (memcpy_s(addr, sizeof(l2->own_addr), l2->own_addr, sizeof(l2->own_addr)) != EOK){ in l2_packet_get_own_addr()
47 ret = WifiEapolPacketSend(l2->ifname, l2->own_addr, dst_addr, (unsigned char *)buf, len); in l2_packet_send()
88 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument
95 (void)own_addr; in l2_packet_init()
116 (void)WifiCmdGetOwnMac(l2->ifname, (char *)l2->own_addr, ETH_ALEN); in l2_packet_init()
122 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument
129 return l2_packet_init(br_ifname, own_addr, protocol, rx_callback, in l2_packet_init_bridge()
Dl2_packet_pcap.c34 u8 own_addr[ETH_ALEN]; member
45 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr()
53 eth_addr_t own_addr; in l2_packet_init_libdnet() local
63 if (eth_get(l2->eth, &own_addr) < 0) { in l2_packet_init_libdnet()
71 os_memcpy(l2->own_addr, own_addr.data, ETH_ALEN); in l2_packet_init_libdnet()
100 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send()
236 MAC2STR(l2->own_addr), /* do not receive own packets */ in l2_packet_init_libpcap()
237 MAC2STR(l2->own_addr), MAC2STR(pae_group_addr), in l2_packet_init_libpcap()
280 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument
296 if (own_addr) in l2_packet_init()
[all …]
Dl2_packet_winpcap.c51 u8 own_addr[ETH_ALEN]; member
67 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr()
90 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send()
179 MAC2STR(l2->own_addr), /* do not receive own packets */ in l2_packet_init_libpcap()
180 MAC2STR(l2->own_addr), MAC2STR(pae_group_addr), in l2_packet_init_libpcap()
199 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument
219 if (own_addr) in l2_packet_init()
220 os_memcpy(l2->own_addr, own_addr, ETH_ALEN); in l2_packet_init()
252 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument
258 return l2_packet_init(br_ifname, own_addr, protocol, rx_callback, in l2_packet_init_bridge()
Dl2_packet_freebsd.c39 u8 own_addr[ETH_ALEN]; member
50 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr()
64 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send()
126 MAC2STR(l2->own_addr), /* do not receive own packets */ in l2_packet_init_libpcap()
127 MAC2STR(l2->own_addr), MAC2STR(pae_group_addr), in l2_packet_init_libpcap()
228 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument
243 if (eth_get(l2->ifname, l2->own_addr) < 0) { in l2_packet_init()
260 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument
266 return l2_packet_init(br_ifname, own_addr, protocol, rx_callback, in l2_packet_init_bridge()
Dl2_packet_none.c20 u8 own_addr[ETH_ALEN]; member
32 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr()
68 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument
95 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument
101 return l2_packet_init(br_ifname, own_addr, protocol, rx_callback, in l2_packet_init_bridge()
Dl2_packet_ndis.c69 u8 own_addr[ETH_ALEN]; member
86 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr()
122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN); in l2_packet_send()
349 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument
379 if (own_addr) in l2_packet_init()
380 os_memcpy(l2->own_addr, own_addr, ETH_ALEN); in l2_packet_init()
454 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument
460 return l2_packet_init(br_ifname, own_addr, protocol, rx_callback, in l2_packet_init_bridge()
Dl2_packet_privsep.c23 u8 own_addr[ETH_ALEN]; member
57 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr()
129 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument
217 os_memcpy(l2->own_addr, reply, ETH_ALEN); in l2_packet_init()
235 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument
241 return l2_packet_init(br_ifname, own_addr, protocol, rx_callback, in l2_packet_init_bridge()
Dl2_packet_linux.c28 u8 own_addr[ETH_ALEN]; member
112 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr()
252 if (os_memcmp(ll.sll_addr, l2->own_addr, ETH_ALEN) == 0) { in l2_packet_receive_br()
280 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument
338 os_memcpy(l2->own_addr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); in l2_packet_init()
347 const char *br_ifname, const char *ifname, const u8 *own_addr, in l2_packet_init_bridge() argument
372 l2 = l2_packet_init(br_ifname, own_addr, protocol, rx_callback, in l2_packet_init_bridge()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/fst/
Dfst_iface.c16 const u8 *own_addr, in fst_iface_create() argument
33 os_memcpy(i->own_addr, own_addr, sizeof(i->own_addr)); in fst_iface_create()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/fst/
Dfst_iface.c16 const u8 *own_addr, in fst_iface_create() argument
33 os_memcpy(i->own_addr, own_addr, sizeof(i->own_addr)); in fst_iface_create()
Dfst.c38 struct fst_iface * fst_attach(const char *ifname, const u8 *own_addr, in fst_attach() argument
68 iface = fst_iface_create(group, ifname, own_addr, iface_obj, cfg); in fst_attach()
221 os_memcpy(iface->own_addr, addr, sizeof(iface->own_addr)); in fst_update_mac_addr()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
Ddriver_hostap.c216 static int hostap_init_sockets(struct hostap_driver_data *drv, u8 *own_addr) in hostap_init_sockets() argument
260 return linux_get_ifhwaddr(drv->sock, drv->iface, own_addr); in hostap_init_sockets()
283 size_t data_len, int encrypt, const u8 *own_addr, in hostap_send_eapol() argument
306 memcpy(hdr->IEEE80211_BSSID_FROMDS, own_addr, ETH_ALEN); in hostap_send_eapol()
307 memcpy(hdr->IEEE80211_SA_FROMDS, own_addr, ETH_ALEN); in hostap_send_eapol()
1001 if (hostap_init_sockets(drv, params->own_addr) || in hostap_init()
1034 static int hostap_sta_deauth(void *priv, const u8 *own_addr, const u8 *addr, in hostap_sta_deauth() argument
1054 memcpy(mgmt.sa, own_addr, ETH_ALEN); in hostap_sta_deauth()
1055 memcpy(mgmt.bssid, own_addr, ETH_ALEN); in hostap_sta_deauth()
1082 static int hostap_sta_disassoc(void *priv, const u8 *own_addr, const u8 *addr, in hostap_sta_disassoc() argument
[all …]
Ddriver_wired.c168 static int wired_init_sockets(struct wpa_driver_wired_data *drv, u8 *own_addr) in wired_init_sockets() argument
230 os_memcpy(own_addr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); in wired_init_sockets()
288 const u8 *own_addr, u32 flags) in wired_send_eapol() argument
307 os_memcpy(hdr->src, own_addr, ETH_ALEN); in wired_send_eapol()
343 if (wired_init_sockets(drv, params->own_addr)) { in wired_driver_hapd_init()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
Ddriver_hostap.c216 static int hostap_init_sockets(struct hostap_driver_data *drv, u8 *own_addr) in hostap_init_sockets() argument
260 return linux_get_ifhwaddr(drv->sock, drv->iface, own_addr); in hostap_init_sockets()
282 size_t data_len, int encrypt, const u8 *own_addr, in hostap_send_eapol() argument
305 memcpy(hdr->IEEE80211_BSSID_FROMDS, own_addr, ETH_ALEN); in hostap_send_eapol()
306 memcpy(hdr->IEEE80211_SA_FROMDS, own_addr, ETH_ALEN); in hostap_send_eapol()
997 if (hostap_init_sockets(drv, params->own_addr) || in hostap_init()
1030 static int hostap_sta_deauth(void *priv, const u8 *own_addr, const u8 *addr, in hostap_sta_deauth() argument
1050 memcpy(mgmt.sa, own_addr, ETH_ALEN); in hostap_sta_deauth()
1051 memcpy(mgmt.bssid, own_addr, ETH_ALEN); in hostap_sta_deauth()
1078 static int hostap_sta_disassoc(void *priv, const u8 *own_addr, const u8 *addr, in hostap_sta_disassoc() argument
[all …]
Ddriver_wired.c168 static int wired_init_sockets(struct wpa_driver_wired_data *drv, u8 *own_addr) in wired_init_sockets() argument
230 os_memcpy(own_addr, ifr.ifr_hwaddr.sa_data, ETH_ALEN); in wired_init_sockets()
288 const u8 *own_addr, u32 flags) in wired_send_eapol() argument
307 os_memcpy(hdr->src, own_addr, ETH_ALEN); in wired_send_eapol()
343 if (wired_init_sockets(drv, params->own_addr)) { in wired_driver_hapd_init()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dwnm_ap.c135 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp()
136 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp()
353 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in ieee802_11_send_bss_trans_mgmt_request()
354 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in ieee802_11_send_bss_trans_mgmt_request()
631 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in wnm_send_disassoc_imminent()
632 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in wnm_send_disassoc_imminent()
697 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in wnm_send_ess_disassoc_imminent()
698 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in wnm_send_ess_disassoc_imminent()
754 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in wnm_send_bss_tm_req()
755 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in wnm_send_bss_tm_req()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dwnm_ap.c147 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp()
148 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp()
377 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in ieee802_11_send_bss_trans_mgmt_request()
378 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in ieee802_11_send_bss_trans_mgmt_request()
691 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in wnm_send_disassoc_imminent()
692 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in wnm_send_disassoc_imminent()
757 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in wnm_send_ess_disassoc_imminent()
758 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in wnm_send_ess_disassoc_imminent()
816 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in wnm_send_bss_tm_req()
817 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in wnm_send_bss_tm_req()
[all …]

1234567