OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs: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
828
if ((last_server->
tcpfd
== -1) &&
829
(last_server->
tcpfd
= socket(last_server->addr.sa.sa_family, SOCK_STREAM, 0)) != -1 &&
830
(!local_bind(last_server->
tcpfd
, &last_server->source_addr,
832
connect(last_server->
tcpfd
, &last_server->addr.sa, sa_len(&last_server->addr)) == -1))
834
close(last_server->
tcpfd
);
835
last_server->
tcpfd
= -1;
838
if (last_server->
tcpfd
== -1)
844
if (!read_write(last_server->
tcpfd
, &c1, 1, 0) ||
845
!read_write(last_server->
tcpfd
, &c2, 1, 0) ||
846
!read_write(last_server->
tcpfd
, packet, size, 0) |
[
all
...]
dnsmasq.c
1083
if (listener->
tcpfd
!= -1)
1087
FD_SET(listener->
tcpfd
, set);
1088
bump_maxfd(listener->
tcpfd
, maxfdp);
1131
if (listener->
tcpfd
!= -1 && FD_ISSET(listener->
tcpfd
, set))
1137
while((confd = accept(listener->
tcpfd
, NULL, NULL)) == -1 && errno == EINTR);
1199
s->
tcpfd
= -1;
1219
if (s->
tcpfd
!= -1)
1221
shutdown(s->
tcpfd
, SHUT_RDWR);
1222
close(s->
tcpfd
);
[
all
...]
dnsmasq.h
337
int flags,
tcpfd
;
member in struct:server
351
int fd,
tcpfd
, tftpfd, family;
member in struct:listener
Completed in 4464 milliseconds