/external/iptables/extensions/ |
libipt_set.h | 42 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/ |
sendserver.c | 194 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...] |
/device/samsung/crespo/alsa-utils/seq/aseqnet/ |
aseqnet.c | 72 static int sockfd, netfd[MAX_CONNECTION] = {[0 ... MAX_CONNECTION-1] = -1}; variable 218 if (sockfd >= 0) 219 close(sockfd); 340 sockfd = socket(AF_INET, SOCK_STREAM, 0); 341 if (sockfd < 0) { 345 setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &curstate, sizeof(curstate)); 348 if (bind(sockfd, (struct sockaddr *)&addr, sizeof(addr)) < 0) { 353 if (listen(sockfd, 5) < 0) { 382 netfd[i] = accept(sockfd, (struct sockaddr *)&addr, &addr_len); 441 pollfds[width].fd = sockfd; [all...] |
/external/iptables/libiptc/ |
libiptc.c | 47 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/ |
ip6tables.c | 1112 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); [all...] |
iptables.c | 1144 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); [all...] |
/external/dnsmasq/src/ |
dnsmasq.h | 585 int sockfd; member in struct:tftp_transfer
|