Home
last modified time | relevance | path

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

/freebsd/contrib/wpa/src/drivers/
H A 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 …]
H A Ddriver_nl80211.h154 int monitor_sock; member
H A Ddriver_nl80211.c2341 drv->monitor_sock = -1; in wpa_driver_nl80211_drv_init()
11033 drv->monitor_sock, in wpa_driver_nl80211_status()