Searched refs:tcpfd (Results 1 – 4 of 4) sorted by relevance
/external/dnsmasq/src/ |
D | network.c | 270 int tcpfd, fd; in create_ipv6_listener() local 288 if ((tcpfd = socket(AF_INET6, SOCK_STREAM, 0)) == -1) in create_ipv6_listener() 292 setsockopt(tcpfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_ipv6_listener() 294 setsockopt(tcpfd, IPV6_LEVEL, IPV6_V6ONLY, &opt, sizeof(opt)) == -1 || in create_ipv6_listener() 296 !fix_fd(tcpfd) || in create_ipv6_listener() 302 bind(tcpfd, (struct sockaddr *)&addr, sa_len(&addr)) == -1 || in create_ipv6_listener() 303 listen(tcpfd, 5) == -1 || in create_ipv6_listener() 309 l->tcpfd = tcpfd; in create_ipv6_listener() 325 int tcpfd = -1, fd = -1, tftpfd = -1; in create_wildcard_listeners() local 339 (tcpfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) in create_wildcard_listeners() [all …]
|
D | forward.c | 828 if ((last_server->tcpfd == -1) && in tcp_request() 829 (last_server->tcpfd = socket(last_server->addr.sa.sa_family, SOCK_STREAM, 0)) != -1 && in tcp_request() 830 (!local_bind(last_server->tcpfd, &last_server->source_addr, in tcp_request() 832 connect(last_server->tcpfd, &last_server->addr.sa, sa_len(&last_server->addr)) == -1)) in tcp_request() 834 close(last_server->tcpfd); in tcp_request() 835 last_server->tcpfd = -1; in tcp_request() 838 if (last_server->tcpfd == -1) in tcp_request() 844 if (!read_write(last_server->tcpfd, &c1, 1, 0) || in tcp_request() 845 !read_write(last_server->tcpfd, &c2, 1, 0) || in tcp_request() 846 !read_write(last_server->tcpfd, packet, size, 0) || in tcp_request() [all …]
|
D | dnsmasq.c | 1083 if (listener->tcpfd != -1) in set_dns_listeners() 1087 FD_SET(listener->tcpfd, set); in set_dns_listeners() 1088 bump_maxfd(listener->tcpfd, maxfdp); in set_dns_listeners() 1131 if (listener->tcpfd != -1 && FD_ISSET(listener->tcpfd, set)) in check_dns_listeners() 1137 while((confd = accept(listener->tcpfd, NULL, NULL)) == -1 && errno == EINTR); in check_dns_listeners() 1199 s->tcpfd = -1; in check_dns_listeners() 1219 if (s->tcpfd != -1) in check_dns_listeners() 1221 shutdown(s->tcpfd, SHUT_RDWR); in check_dns_listeners() 1222 close(s->tcpfd); in check_dns_listeners()
|
D | dnsmasq.h | 337 int flags, tcpfd; member 351 int fd, tcpfd, tftpfd, family; member
|