Searched refs:ctrl_sock (Results 1 – 6 of 6) sorted by relevance
/hostap-latest/wlantest/ |
D | ctrl.c | 1422 wt->ctrl_sock = socket(AF_UNIX, SOCK_SEQPACKET, 0); in ctrl_init() 1423 if (wt->ctrl_sock < 0) { in ctrl_init() 1432 if (bind(wt->ctrl_sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) { in ctrl_init() 1434 close(wt->ctrl_sock); in ctrl_init() 1435 wt->ctrl_sock = -1; in ctrl_init() 1439 if (listen(wt->ctrl_sock, 5) < 0) { in ctrl_init() 1441 close(wt->ctrl_sock); in ctrl_init() 1442 wt->ctrl_sock = -1; in ctrl_init() 1446 if (eloop_register_read_sock(wt->ctrl_sock, ctrl_connect, wt, NULL)) { in ctrl_init() 1447 close(wt->ctrl_sock); in ctrl_init() [all …]
|
D | wlantest.c | 53 wt->ctrl_sock = -1; in wlantest_init() 96 if (wt->ctrl_sock >= 0) in wlantest_deinit()
|
D | wlantest.h | 215 int ctrl_sock; member
|
/hostap-latest/hostapd/ |
D | ctrl_iface.c | 4747 if (hapd->ctrl_sock > -1) { in hostapd_ctrl_iface_init() 4766 hapd->ctrl_sock = -1; in hostapd_ctrl_iface_init() 4789 hapd->ctrl_sock = socket(res->ai_family, res->ai_socktype, in hostapd_ctrl_iface_init() 4791 if (hapd->ctrl_sock < 0) { in hostapd_ctrl_iface_init() 4796 if (bind(hapd->ctrl_sock, res->ai_addr, res->ai_addrlen) < 0) { in hostapd_ctrl_iface_init() 4815 if (eloop_register_read_sock(hapd->ctrl_sock, in hostapd_ctrl_iface_init() 4828 if (hapd->ctrl_sock >= 0) in hostapd_ctrl_iface_init() 4829 close(hapd->ctrl_sock); in hostapd_ctrl_iface_init() 4836 if (hapd->ctrl_sock > -1) { in hostapd_ctrl_iface_init() 4963 hapd->ctrl_sock = s; in hostapd_ctrl_iface_init() [all …]
|
/hostap-latest/src/ap/ |
D | hostapd.h | 230 int ctrl_sock; member
|
D | hostapd.c | 2894 hapd->ctrl_sock = -1; in hostapd_alloc_bss_data()
|