Home
last modified time | relevance | path

Searched refs:dhcp_sock (Results 1 – 4 of 4) sorted by relevance

/external/wpa_supplicant_8/src/drivers/
Ddriver_wired.c50 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()
/external/wpa_supplicant_8/src/ap/
Dfils_hlp.c132 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 …]
Dhostapd.h371 int dhcp_sock; /* UDP socket used with the DHCP server */ member
Dhostapd.c2353 hapd->dhcp_sock = -1; in hostapd_alloc_bss_data()