Home
last modified time | relevance | path

Searched refs:dhcpfd (Results 1 – 6 of 6) sorted by relevance

/external/dnsmasq/src/
Ddhcp.c79 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()
Dbpf.c184 if (ioctl(daemon->dhcpfd, SIOCGIFADDR, ifr) < 0) in send_via_bpf()
Ddnsmasq.c614 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()
Dhelper.c355 if (ioctl(daemon->dhcpfd, SIOCGIFNAME, &ifr) != -1) in queue_script()
Ddnsmasq.h667 int dhcpfd, helperfd; member
/external/dnsmasq/contrib/lease-access/
Dlease.access.patch78 if (daemon->dhcp && FD_ISSET(daemon->dhcpfd, &rset))