Home
last modified time | relevance | path

Searched refs:monitor_sock (Results 1 – 7 of 7) sorted by relevance

/hostap-3.7.0/wlantest/
Dmonitor.c90 wt->monitor_sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in monitor_init()
91 if (wt->monitor_sock < 0) { in monitor_init()
97 if (bind(wt->monitor_sock, (struct sockaddr *) &ll, sizeof(ll)) < 0) { in monitor_init()
99 close(wt->monitor_sock); in monitor_init()
100 wt->monitor_sock = -1; in monitor_init()
104 if (eloop_register_read_sock(wt->monitor_sock, monitor_read, wt, NULL)) in monitor_init()
108 close(wt->monitor_sock); in monitor_init()
109 wt->monitor_sock = -1; in monitor_init()
159 if (wt->monitor_sock >= 0) { in monitor_deinit()
160 eloop_unregister_read_sock(wt->monitor_sock); in monitor_deinit()
[all …]
Dinject.c104 ret = inject_frame(wt->monitor_sock, prot, plen); in wlantest_inject_bip()
152 ret = inject_frame(wt->monitor_sock, crypt, crypt_len); in wlantest_inject_prot_bc()
266 ret = inject_frame(wt->monitor_sock, crypt, crypt_len); in wlantest_inject_prot()
284 if (wt->monitor_sock < 0) { in wlantest_inject()
338 ret = inject_frame(wt->monitor_sock, frame, len); in wlantest_inject()
Dwlantest.c52 wt->monitor_sock = -1; in wlantest_init()
98 if (wt->monitor_sock >= 0) in wlantest_deinit()
Dwlantest.h196 int monitor_sock; member
/hostap-3.7.0/src/drivers/
Ddriver_nl80211_monitor.c336 if (drv->monitor_sock >= 0) { in nl80211_remove_monitor_interface()
337 eloop_unregister_read_sock(drv->monitor_sock); in nl80211_remove_monitor_interface()
338 close(drv->monitor_sock); in nl80211_remove_monitor_interface()
339 drv->monitor_sock = -1; in nl80211_remove_monitor_interface()
407 drv->monitor_sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in nl80211_create_monitor_interface()
408 if (drv->monitor_sock < 0) { in nl80211_create_monitor_interface()
414 if (add_monitor_filter(drv->monitor_sock)) { in nl80211_create_monitor_interface()
420 if (bind(drv->monitor_sock, (struct sockaddr *) &ll, sizeof(ll)) < 0) { in nl80211_create_monitor_interface()
429 (drv->monitor_sock, SOL_SOCKET, SO_PRIORITY, &optval, optlen)) { in nl80211_create_monitor_interface()
435 if (eloop_register_read_sock(drv->monitor_sock, handle_monitor_read, in nl80211_create_monitor_interface()
[all …]
Ddriver_nl80211.h137 int monitor_sock; member
Ddriver_nl80211.c2218 drv->monitor_sock = -1; in wpa_driver_nl80211_drv_init()
9694 drv->monitor_sock, in wpa_driver_nl80211_status()