Searched refs:dhcp_sock (Results 1 – 8 of 8) sorted by relevance
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
D | driver_wired.c | 50 int dhcp_sock; /* socket for dhcp packets */ member 233 if ((drv->dhcp_sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) { in wired_init_sockets() 239 if (eloop_register_read_sock(drv->dhcp_sock, handle_dhcp, in wired_init_sockets() 250 if (setsockopt(drv->dhcp_sock, SOL_SOCKET, SO_REUSEADDR, (char *) &n, in wired_init_sockets() 256 if (setsockopt(drv->dhcp_sock, SOL_SOCKET, SO_BROADCAST, (char *) &n, in wired_init_sockets() 265 if (setsockopt(drv->dhcp_sock, SOL_SOCKET, SO_BINDTODEVICE, in wired_init_sockets() 273 if (bind(drv->dhcp_sock, (struct sockaddr *) &addr2, in wired_init_sockets() 361 if (drv->dhcp_sock >= 0) { in wired_driver_hapd_deinit() 362 eloop_unregister_read_sock(drv->dhcp_sock); in wired_driver_hapd_deinit() 363 close(drv->dhcp_sock); in wired_driver_hapd_deinit()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/ |
D | driver_wired.c | 50 int dhcp_sock; /* socket for dhcp packets */ member 233 if ((drv->dhcp_sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) { in wired_init_sockets() 239 if (eloop_register_read_sock(drv->dhcp_sock, handle_dhcp, in wired_init_sockets() 250 if (setsockopt(drv->dhcp_sock, SOL_SOCKET, SO_REUSEADDR, (char *) &n, in wired_init_sockets() 256 if (setsockopt(drv->dhcp_sock, SOL_SOCKET, SO_BROADCAST, (char *) &n, in wired_init_sockets() 265 if (setsockopt(drv->dhcp_sock, SOL_SOCKET, SO_BINDTODEVICE, in wired_init_sockets() 273 if (bind(drv->dhcp_sock, (struct sockaddr *) &addr2, in wired_init_sockets() 361 if (drv->dhcp_sock >= 0) { in wired_driver_hapd_deinit() 362 eloop_unregister_read_sock(drv->dhcp_sock); in wired_driver_hapd_deinit() 363 close(drv->dhcp_sock); in wired_driver_hapd_deinit()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
D | fils_hlp.c | 132 res = sendto(hapd->dhcp_sock, wpabuf_head(sta->hlp_dhcp_discover), in fils_dhcp_request() 401 if (hapd->dhcp_sock < 0) { in fils_process_hlp_dhcp() 432 hapd->dhcp_sock = s; in fils_process_hlp_dhcp() 445 res = sendto(hapd->dhcp_sock, dhcp_msg, len, 0, in fils_process_hlp_dhcp() 452 eloop_unregister_read_sock(hapd->dhcp_sock); in fils_process_hlp_dhcp() 453 close(hapd->dhcp_sock); in fils_process_hlp_dhcp() 454 hapd->dhcp_sock = -1; in fils_process_hlp_dhcp() 649 if (hapd->dhcp_sock >= 0) { in fils_hlp_deinit() 650 eloop_unregister_read_sock(hapd->dhcp_sock); in fils_hlp_deinit() 651 close(hapd->dhcp_sock); in fils_hlp_deinit() [all …]
|
D | hostapd.h | 375 int dhcp_sock; /* UDP socket used with the DHCP server */ member
|
D | hostapd.c | 2381 hapd->dhcp_sock = -1; in hostapd_alloc_bss_data()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
D | fils_hlp.c | 132 res = sendto(hapd->dhcp_sock, wpabuf_head(sta->hlp_dhcp_discover), in fils_dhcp_request() 401 if (hapd->dhcp_sock < 0) { in fils_process_hlp_dhcp() 432 hapd->dhcp_sock = s; in fils_process_hlp_dhcp() 445 res = sendto(hapd->dhcp_sock, dhcp_msg, len, 0, in fils_process_hlp_dhcp() 452 eloop_unregister_read_sock(hapd->dhcp_sock); in fils_process_hlp_dhcp() 453 close(hapd->dhcp_sock); in fils_process_hlp_dhcp() 454 hapd->dhcp_sock = -1; in fils_process_hlp_dhcp() 649 if (hapd->dhcp_sock >= 0) { in fils_hlp_deinit() 650 eloop_unregister_read_sock(hapd->dhcp_sock); in fils_hlp_deinit() 651 close(hapd->dhcp_sock); in fils_hlp_deinit() [all …]
|
D | hostapd.h | 360 int dhcp_sock; /* UDP socket used with the DHCP server */ member
|
D | hostapd.c | 2234 hapd->dhcp_sock = -1; in hostapd_alloc_bss_data()
|