/external/android-clat/ |
H A D | netlink_msg.c | 117 int sockfd = nl_socket_get_fd(nl_sk); local 118 return connect(sockfd, (struct sockaddr *) &addr, sizeof(addr));
|
/external/iptables/extensions/ |
H A D | libxt_set.h | 18 int res, sockfd = socket(AF_INET, SOCK_RAW, IPPROTO_RAW); local 22 if (sockfd < 0) 27 res = getsockopt(sockfd, SOL_IP, SO_IP_SET, &req_version, &size); 34 return sockfd; 42 int res, sockfd; local 44 sockfd = get_version(&req.version); 47 res = getsockopt(sockfd, SOL_IP, SO_IP_SET, &req, &size); 48 close(sockfd); 71 int res, sockfd; local 73 sockfd [all...] |
/external/ppp/pppd/plugins/radius/ |
H A D | 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...] |
/external/mdnsresponder/mDNSPosix/ |
H A D | mDNSUNP.c | 95 int sockfd = -1; local 104 sockfd = socket(AF_INET6, SOCK_DGRAM, 0); 105 if (sockfd < 0) { 174 if (ioctl(sockfd, SIOCGIFFLAGS, &ifr) < 0) { 207 if (sockfd != -1) { 208 assert(close(sockfd) == 0); 218 int sockfd, sockf6, len, lastlen, flags, myflags; local 235 sockfd = -1; 240 sockfd = socket(AF_INET, SOCK_DGRAM, 0); 241 if (sockfd < [all...] |
/external/clang/tools/libclang/ |
H A D | CIndexCodeCompletion.cpp | 797 int sockfd = socket(AF_INET, SOCK_DGRAM, 0); local 798 if (sockfd < 0) 801 sendto(sockfd, res.data(), res.size(), 0, 803 close(sockfd);
|
/external/openssh/ |
H A D | sshconnect.c | 243 timeout_connect(int sockfd, const struct sockaddr *serv_addr, argument 254 result = connect(sockfd, serv_addr, addrlen); 258 set_nonblock(sockfd); 259 rc = connect(sockfd, serv_addr, addrlen); 261 unset_nonblock(sockfd); 270 fdset = (fd_set *)xcalloc(howmany(sockfd + 1, NFDBITS), 272 FD_SET(sockfd, fdset); 276 rc = select(sockfd + 1, NULL, fdset, NULL, &tv); 294 if (getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &optval, 304 unset_nonblock(sockfd); [all...] |
/external/valgrind/main/coregrind/ |
H A D | m_libcfile.c | 711 Int my_connect ( Int sockfd, struct vki_sockaddr_in* serv_addr, Int addrlen ); 893 Int my_connect ( Int sockfd, struct vki_sockaddr_in* serv_addr, Int addrlen ) argument 899 args[0] = sockfd; 908 res = VG_(do_syscall3)(__NR_connect, sockfd, (UWord)serv_addr, addrlen); 914 sockfd, (UWord)serv_addr, addrlen);
|
/external/iptables/iptables/ |
H A D | xtables.c | 744 int max_rev, sockfd; local 746 sockfd = socket(afinfo->family, SOCK_RAW, IPPROTO_RAW); 747 if (sockfd < 0) { 762 if (fcntl(sockfd, F_SETFD, FD_CLOEXEC) == -1) { 773 max_rev = getsockopt(sockfd, afinfo->ipproto, opt, &rev, &s); 777 close(sockfd); 780 close(sockfd); 789 close(sockfd);
|
/external/iptables/libiptc/ |
H A D | libiptc.c | 135 int sockfd; variable 1316 int sockfd; local 1325 sockfd = socket(TC_AF, SOCK_RAW, IPPROTO_RAW); 1326 if (sockfd < 0) 1333 if (getsockopt(sockfd, TC_IPPROTO, SO_GET_INFO, &info, &s) < 0) { 1334 close(sockfd); 1343 close(sockfd); 1348 h->sockfd = sockfd; 1355 if (getsockopt(h->sockfd, TC_IPPROT [all...] |
/external/mdnsresponder/mDNSShared/ |
H A D | dnssd_clientstub.c | 119 #define DNSServiceRefValid(X) (dnssd_SocketValid((X)->sockfd) && (((X)->sockfd ^ (X)->validator) == ValidatorBits)) 131 dnssd_sock_t sockfd; // Connected socket between client and daemon member in struct:_DNSServiceRef_t 385 // then sockfd could legitimately contain a failing value (e.g. dnssd_InvalidSocket) 386 if ((x->sockfd ^ x->validator) != ValidatorBits) 387 syslog(LOG_WARNING, "dnssd_clientstub attempt to dispose invalid DNSServiceRef %p %08X %08X", x, x->sockfd, x->validator); 392 x->sockfd = dnssd_InvalidSocket; 438 (*ref), (*ref)->sockfd, (*ref)->validator); 459 sdr->sockfd = dnssd_InvalidSocket; 460 sdr->validator = sdr->sockfd [all...] |
/external/blktrace/ |
H A D | blktrace.c | 698 static int my_accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen) argument 703 fd = accept(sockfd, addr, addrlen);
|
/external/dnsmasq/src/ |
H A D | dnsmasq.h | 585 int sockfd; member in struct:tftp_transfer
|