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
283
int
tcpfd
, fd;
local
301
if ((
tcpfd
= socket(AF_INET6, SOCK_STREAM, 0)) == -1)
305
setsockopt(
tcpfd
, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 ||
307
setsockopt(
tcpfd
, IPV6_LEVEL, IPV6_V6ONLY, &opt, sizeof(opt)) == -1 ||
309
!fix_fd(
tcpfd
) ||
315
bind(
tcpfd
, (struct sockaddr *)&addr, sa_len(&addr)) == -1 ||
316
listen(
tcpfd
, 5) == -1 ||
322
l->
tcpfd
=
tcpfd
;
337
int
tcpfd
= -1, fd = -1
local
[
all
...]
forward.c
821
if ((last_server->
tcpfd
== -1) &&
822
(last_server->
tcpfd
= socket(last_server->addr.sa.sa_family, SOCK_STREAM, 0)) != -1 &&
823
(!local_bind(last_server->
tcpfd
, &last_server->source_addr,
825
connect(last_server->
tcpfd
, &last_server->addr.sa, sa_len(&last_server->addr)) == -1))
827
close(last_server->
tcpfd
);
828
last_server->
tcpfd
= -1;
831
if (last_server->
tcpfd
== -1)
837
if (!read_write(last_server->
tcpfd
, &c1, 1, 0) ||
838
!read_write(last_server->
tcpfd
, &c2, 1, 0) ||
839
!read_write(last_server->
tcpfd
, packet, size, 0) |
[
all
...]
dnsmasq.c
962
if (listener->
tcpfd
!= -1)
966
FD_SET(listener->
tcpfd
, set);
967
bump_maxfd(listener->
tcpfd
, maxfdp);
996
if (listener->
tcpfd
!= -1 && FD_ISSET(listener->
tcpfd
, set))
1002
while((confd = accept(listener->
tcpfd
, NULL, NULL)) == -1 && errno == EINTR);
1064
s->
tcpfd
= -1;
1084
if (s->
tcpfd
!= -1)
1086
shutdown(s->
tcpfd
, SHUT_RDWR);
1087
close(s->
tcpfd
);
[
all
...]
dnsmasq.h
331
int flags,
tcpfd
;
member in struct:server
345
int fd,
tcpfd
, family;
member in struct:listener
Completed in 4986 milliseconds