Searched refs:sockfd (Results 1 - 9 of 9) sorted by relevance

/external/iptables/extensions/
H A Dlibipt_set.h42 int sockfd = -1; local
43 sockfd = socket(AF_INET, SOCK_RAW, IPPROTO_RAW);
44 if (sockfd < 0)
48 return getsockopt(sockfd, SOL_IP, SO_IP_SET, data, size);
/external/ppp/pppd/plugins/radius/
H A Dsendserver.c194 int sockfd; local
235 sockfd = socket (AF_INET, SOCK_DGRAM, 0);
236 if (sockfd < 0)
249 if (bind (sockfd, (struct sockaddr *) sin, length) < 0 ||
250 getsockname (sockfd, (struct sockaddr *) sin, &length) < 0)
252 close (sockfd);
296 sendto (sockfd, (char *) auth, (unsigned int) total_length, (int) 0,
302 FD_SET (sockfd, &readfds);
303 if (select (sockfd + 1, &readfds, NULL, NULL, &authtime) < 0)
309 close (sockfd);
[all...]
/external/dnsmasq/src/
H A Dtftp.c147 if ((transfer->sockfd = socket(AF_INET, SOCK_DGRAM, 0)) == -1)
166 if (bind(transfer->sockfd, (struct sockaddr *)&addr, sizeof(addr)) == -1 ||
168 setsockopt(transfer->sockfd, SOL_IP, IP_MTU_DISCOVER, &mtuflag, sizeof(mtuflag)) == -1 ||
170 !fix_fd(transfer->sockfd))
275 while (sendto(transfer->sockfd, packet, len, 0,
385 if (FD_ISSET(transfer->sockfd, rset))
390 if ((len = recv(transfer->sockfd, daemon->packet, daemon->packet_buff_sz, 0)) >= (ssize_t)sizeof(struct ack))
453 while(sendto(transfer->sockfd, daemon->packet, len, 0,
471 close(transfer->sockfd);
H A Ddnsmasq.c1028 FD_SET(transfer->sockfd, set);
1029 bump_maxfd(transfer->sockfd, maxfdp);
H A Ddnsmasq.h585 int sockfd; member in struct:tftp_transfer
/external/iptables/libiptc/
H A Dlibiptc.c47 static int sockfd = -1; variable
812 sockfd = socket(TC_AF, SOCK_RAW, IPPROTO_RAW);
813 if (sockfd < 0)
821 if (getsockopt(sockfd, TC_IPPROTO, SO_GET_INFO, &info, &s) < 0) {
823 close(sockfd);
824 sockfd = -1;
835 close(sockfd);
836 sockfd = -1;
848 if (getsockopt(sockfd, TC_IPPROTO, SO_GET_ENTRIES, h->entries,
870 close(sockfd);
[all...]
/external/iptables/
H A Dip6tables.c1112 int max_rev, sockfd; local
1114 sockfd = socket(AF_INET6, SOCK_RAW, IPPROTO_RAW);
1115 if (sockfd < 0) {
1126 max_rev = getsockopt(sockfd, IPPROTO_IPV6, opt, &rev, &s);
1130 close(sockfd);
1133 close(sockfd);
1142 close(sockfd);
H A Diptables.c1144 int max_rev, sockfd; local
1146 sockfd = socket(AF_INET, SOCK_RAW, IPPROTO_RAW);
1147 if (sockfd < 0) {
1158 max_rev = getsockopt(sockfd, IPPROTO_IP, opt, &rev, &s);
1162 close(sockfd);
1165 close(sockfd);
1175 close(sockfd);
/external/blktrace/
H A Dblktrace.c698 static int my_accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen) argument
703 fd = accept(sockfd, addr, addrlen);

Completed in 638 milliseconds