Searched refs:confd (Results 1 – 3 of 3) sorted by relevance
/external/dnsmasq/src/ |
D | dnsmasq.c | 1133 int confd; in check_dns_listeners() local 1137 while((confd = accept(listener->tcpfd, NULL, NULL)) == -1 && errno == EINTR); in check_dns_listeners() 1139 if (confd == -1) in check_dns_listeners() 1156 getsockname(confd, (struct sockaddr *)&tcp_addr, &tcp_len) != -1) in check_dns_listeners() 1164 shutdown(confd, SHUT_RDWR); in check_dns_listeners() 1165 close(confd); in check_dns_listeners() 1180 close(confd); in check_dns_listeners() 1204 if ((flags = fcntl(confd, F_GETFL, 0)) != -1) in check_dns_listeners() 1205 fcntl(confd, F_SETFL, flags & ~O_NONBLOCK); in check_dns_listeners() 1210 buff = tcp_request(confd, now, dst_addr_4, iface->netmask); in check_dns_listeners() [all …]
|
D | forward.c | 733 unsigned char *tcp_request(int confd, time_t now, in tcp_request() argument 748 !read_write(confd, &c1, 1, 1) || !read_write(confd, &c2, 1, 1) || in tcp_request() 750 !read_write(confd, packet, size, 1)) in tcp_request() 763 if (getpeername(confd, (struct sockaddr *)&peer_addr, &peer_len) != -1) in tcp_request() 892 if (!read_write(confd, &c1, 1, 0) || in tcp_request() 893 !read_write(confd, &c2, 1, 0) || in tcp_request() 894 !read_write(confd, packet, m, 0)) in tcp_request()
|
D | dnsmasq.h | 774 unsigned char *tcp_request(int confd, time_t now,
|