Searched refs:dhcp_sock (Results 1 – 1 of 1) sorted by relevance
/external/wpa_supplicant_8/src/drivers/ |
D | driver_wired.c | 54 int dhcp_sock; /* socket for dhcp packets */ member 266 if ((drv->dhcp_sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) { in wired_init_sockets() 272 if (eloop_register_read_sock(drv->dhcp_sock, handle_dhcp, drv->ctx, in wired_init_sockets() 283 if (setsockopt(drv->dhcp_sock, SOL_SOCKET, SO_REUSEADDR, (char *) &n, in wired_init_sockets() 289 if (setsockopt(drv->dhcp_sock, SOL_SOCKET, SO_BROADCAST, (char *) &n, in wired_init_sockets() 298 if (setsockopt(drv->dhcp_sock, SOL_SOCKET, SO_BINDTODEVICE, in wired_init_sockets() 306 if (bind(drv->dhcp_sock, (struct sockaddr *) &addr2, in wired_init_sockets() 393 if (drv->dhcp_sock >= 0) { in wired_driver_hapd_deinit() 394 eloop_unregister_read_sock(drv->dhcp_sock); in wired_driver_hapd_deinit() 395 close(drv->dhcp_sock); in wired_driver_hapd_deinit()
|