HomeSort by relevance Sort by last modified time
    Searched full:tcpfd (Results 1 - 4 of 4) sorted by null

  /external/dnsmasq/src/
network.c 270 int tcpfd, fd; local
288 if ((tcpfd = socket(AF_INET6, SOCK_STREAM, 0)) == -1)
292 setsockopt(tcpfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 ||
294 setsockopt(tcpfd, IPV6_LEVEL, IPV6_V6ONLY, &opt, sizeof(opt)) == -1 ||
296 !fix_fd(tcpfd) ||
302 bind(tcpfd, (struct sockaddr *)&addr, sa_len(&addr)) == -1 ||
303 listen(tcpfd, 5) == -1 ||
309 l->tcpfd = tcpfd;
324 int tcpfd = -1, fd = -1, tftpfd = -1 local
    [all...]
forward.c 816 if ((last_server->tcpfd == -1) &&
817 (last_server->tcpfd = socket(last_server->addr.sa.sa_family, SOCK_STREAM, 0)) != -1 &&
818 (!local_bind(last_server->tcpfd, &last_server->source_addr, last_server->interface, 1) ||
819 connect(last_server->tcpfd, &last_server->addr.sa, sa_len(&last_server->addr)) == -1))
821 close(last_server->tcpfd);
822 last_server->tcpfd = -1;
825 if (last_server->tcpfd == -1)
831 if (!read_write(last_server->tcpfd, &c1, 1, 0) ||
832 !read_write(last_server->tcpfd, &c2, 1, 0) ||
833 !read_write(last_server->tcpfd, packet, size, 0) |
    [all...]
dnsmasq.c 1062 if (listener->tcpfd != -1)
1066 FD_SET(listener->tcpfd, set);
1067 bump_maxfd(listener->tcpfd, maxfdp);
1110 if (listener->tcpfd != -1 && FD_ISSET(listener->tcpfd, set))
1116 while((confd = accept(listener->tcpfd, NULL, NULL)) == -1 && errno == EINTR);
1178 s->tcpfd = -1;
1198 if (s->tcpfd != -1)
1200 shutdown(s->tcpfd, SHUT_RDWR);
1201 close(s->tcpfd);
    [all...]
dnsmasq.h 336 int flags, tcpfd; member in struct:server
349 int fd, tcpfd, tftpfd, family; member in struct:listener

Completed in 51 milliseconds