Searched refs:confd (Results 1 – 3 of 3) sorted by relevance
/external/dnsmasq/src/ |
D | dnsmasq.c | 907 int confd; in check_dns_listeners() local 911 while ((confd = accept(listener->tcpfd, NULL, NULL)) == -1 && errno == EINTR) in check_dns_listeners() 914 if (confd == -1) continue; in check_dns_listeners() 929 getsockname(confd, (struct sockaddr*) &tcp_addr, &tcp_len) != -1) in check_dns_listeners() 935 shutdown(confd, SHUT_RDWR); in check_dns_listeners() 936 close(confd); in check_dns_listeners() 948 close(confd); in check_dns_listeners() 969 if ((flags = fcntl(confd, F_GETFL, 0)) != -1) in check_dns_listeners() 970 fcntl(confd, F_SETFL, flags & ~O_NONBLOCK); in check_dns_listeners() 974 buff = tcp_request(confd, now, dst_addr_4, iface->netmask); in check_dns_listeners() [all …]
|
D | forward.c | 629 unsigned char* tcp_request(int confd, time_t now, struct in_addr local_addr, in tcp_request() argument 641 if (!packet || !read_write(confd, &c1, 1, 1) || !read_write(confd, &c2, 1, 1) || in tcp_request() 642 !(size = c1 << 8 | c2) || !read_write(confd, packet, size, 1)) in tcp_request() 653 if (getpeername(confd, (struct sockaddr*) &peer_addr, &peer_len) != -1) { in tcp_request() 772 if (!read_write(confd, &c1, 1, 0) || !read_write(confd, &c2, 1, 0) || in tcp_request() 773 !read_write(confd, packet, m, 0)) in tcp_request()
|
D | dnsmasq.h | 724 unsigned char* tcp_request(int confd, time_t now, struct in_addr local_addr, struct in_addr netmask…
|