Searched refs:dhcpfd (Results 1 – 6 of 6) sorted by relevance
/external/dnsmasq/src/ |
D | dhcp.c | 79 daemon->dhcpfd = fd; in dhcp_init() 138 while ((sz = recvmsg(daemon->dhcpfd, &msg, MSG_PEEK | MSG_TRUNC)) == -1 && errno == EINTR); in dhcp_packet() 168 while ((sz = recvmsg(daemon->dhcpfd, &msg, 0)) == -1 && errno == EINTR); in dhcp_packet() 198 if (!indextoname(daemon->dhcpfd, iface_index, ifr.ifr_name)) in dhcp_packet() 208 if (ioctl(daemon->dhcpfd, SIOCGIFADDR, &ifr) != -1 ) in dhcp_packet() 224 if (ioctl(daemon->dhcpfd, SIOCGIFADDR, &ifr) == -1) in dhcp_packet() 316 ioctl(daemon->dhcpfd, SIOCSARP, &req); in dhcp_packet() 340 ioctl(daemon->dhcpfd, SIOCSARP, &req); in dhcp_packet() 351 setsockopt(daemon->dhcpfd, IPPROTO_IP, IP_BOUND_IF, &iface_index, sizeof(iface_index)); in dhcp_packet() 354 while(sendmsg(daemon->dhcpfd, &msg, 0) == -1 && retry_send()); in dhcp_packet()
|
D | bpf.c | 184 if (ioctl(daemon->dhcpfd, SIOCGIFADDR, ifr) < 0) in send_via_bpf()
|
D | dnsmasq.c | 614 FD_SET(daemon->dhcpfd, &rset); in main() 615 bump_maxfd(daemon->dhcpfd, &maxfd); in main() 700 if (daemon->dhcp && FD_ISSET(daemon->dhcpfd, &rset)) in main()
|
D | helper.c | 355 if (ioctl(daemon->dhcpfd, SIOCGIFNAME, &ifr) != -1) in queue_script()
|
D | dnsmasq.h | 667 int dhcpfd, helperfd; member
|
/external/dnsmasq/contrib/lease-access/ |
D | lease.access.patch | 78 if (daemon->dhcp && FD_ISSET(daemon->dhcpfd, &rset))
|