/libcore/luni/src/main/native/ |
NetworkUtilities.h | 30 sockaddr_storage& ss, socklen_t& sa_len); 39 sockaddr_storage& ss, socklen_t& sa_len);
|
NetworkUtilities.cpp | 91 static bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len, bool map) { 93 sa_len = 0; 107 sa_len = sizeof(ss.ss_family); 132 // then unconditionally set sa_len to sizeof(sockaddr_storage) instead of having 145 sa_len = sizeof(sockaddr_in6); 162 sa_len = sizeof(sockaddr_in6); 169 sa_len = sizeof(sockaddr_in); 174 bool inetAddressToSockaddrVerbatim(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len) { 175 return inetAddressToSockaddr(env, inetAddress, port, ss, sa_len, false); 178 bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len) { [all...] |
libcore_io_Posix.cpp | 331 * Returns a jbyteArray containing the sockaddr_un.sun_path from ss. As per unix(7) sa_len should be 337 const socklen_t& sa_len) { 345 // The length of sun_path is sa_len minus the length of the overhead (ss_family). 348 size_t pathLength = sa_len - offsetof(struct sockaddr_un, sun_path); 362 static jobject makeSocketAddress(JNIEnv* env, const sockaddr_storage& ss, const socklen_t sa_len) { 376 jbyteArray javaSunPath = getUnixSocketPath(env, ss, sa_len); 491 const sockaddr_storage& ss, const socklen_t& sa_len) { 495 jbyteArray javaSunPath = getUnixSocketPath(env, ss, sa_len); 530 const socklen_t& sa_len) { 538 return fillUnixSocketAddress(env, javaSocketAddress, ss, sa_len); 765 socklen_t sa_len; local 810 socklen_t sa_len; local 1039 socklen_t sa_len; local 1626 socklen_t sa_len; local 1713 socklen_t sa_len; local 1738 socklen_t sa_len; local [all...] |
/libcore/ojluni/src/main/native/ |
InheritedChannel.c | 59 socklen_t sa_len; local 63 NET_AllocSockaddr(&sa, (int *)&sa_len); 64 if (getpeername(fd, sa, &sa_len) == 0) { 79 socklen_t sa_len; local 82 NET_AllocSockaddr(&sa, (int *)&sa_len); 83 if (getpeername(fd, sa, &sa_len) == 0) {
|
ServerSocketChannelImpl.c | 95 socklen_t sa_len = alloc_len; local 96 newfd = accept(ssfd, sa, &sa_len);
|
DatagramChannelImpl.c | 139 socklen_t sa_len = SOCKADDR_LEN; local 148 memset(&sa, 0, sa_len); 152 n = recvfrom(fd, buf, len, 0, (struct sockaddr *)&sa, &sa_len); 231 int sa_len = SOCKADDR_LEN; local 240 &sa_len, preferIPv6) != 0) { 244 n = sendto(fd, buf, len, 0, (struct sockaddr *)&sa, sa_len);
|
Net.c | 220 int sa_len = SOCKADDR_LEN; local 223 if (NET_InetAddressToSockaddr(env, iao, port, (struct sockaddr *)&sa, &sa_len, preferIPv6) != 0) { 227 rv = NET_Bind(fdval(env, fdo), (struct sockaddr *)&sa, sa_len); 245 int sa_len = SOCKADDR_LEN; local 249 &sa_len, preferIPv6) != 0) 254 rv = connect(fdval(env, fdo), (struct sockaddr *)&sa, sa_len); 270 socklen_t sa_len = SOCKADDR_LEN; local 271 if (getsockname(fdval(env, fdo), (struct sockaddr *)&sa, &sa_len) < 0) { 304 socklen_t sa_len = SOCKADDR_LEN; local 306 if (getsockname(fdval(env, fdo), (struct sockaddr *)&sa, &sa_len) < 0) [all...] |
/external/mdnsresponder/mDNSPosix/ |
mDNSUNP.h | 56 #define GET_SA_LEN(X) (sizeof(struct sockaddr) > ((struct sockaddr*)&(X))->sa_len ? \ 57 sizeof(struct sockaddr) : ((struct sockaddr*)&(X))->sa_len )
|
/external/libpcap/Win32/Include/net/ |
if.h | 182 ((ifr).ifr_addr.sa_len > sizeof(struct sockaddr) ? \ 184 (ifr).ifr_addr.sa_len) : sizeof(struct ifreq))
|
/external/dnsmasq/src/ |
network.c | 315 bind(tcpfd, (struct sockaddr *)&addr, sa_len(&addr)) == -1 || 317 bind(fd, (struct sockaddr *)&addr, sa_len(&addr)) == -1) 356 bind(tcpfd, (struct sockaddr *)&addr, sa_len(&addr)) == -1 || 370 bind(fd, (struct sockaddr *)&addr, sa_len(&addr)) == -1) 388 bind(tftpfd, (struct sockaddr *)&addr, sa_len(&addr)) == -1) 454 if ((rc = bind(new->fd, &iface->addr.sa, sa_len(&iface->addr))) != -1) 473 if (rc == -1 || bind(new->tcpfd, &iface->addr.sa, sa_len(&iface->addr)) == -1) 491 bind(new->tftpfd, &iface->addr.sa, sa_len(&iface->addr)) == -1) 639 if ((rc = bind(new->fd, &iface->addr.sa, sa_len(&iface->addr))) != -1) 656 if (rc == -1 || bind(new->tcpfd, &iface->addr.sa, sa_len(&iface->addr)) == -1 [all...] |
bpf.c | 76 if (ifr->ifr_addr.sa_len > sizeof(ifr->ifr_ifru)) 77 len = ifr->ifr_addr.sa_len + offsetof(struct ifreq, ifr_ifru);
|
util.c | 274 int sa_len(union mysockaddr *addr) function 277 return addr->sa.sa_len;
|
netlink.c | 296 &daemon->srv_save->addr.sa, sa_len(&daemon->srv_save->addr)) == -1 && retry_send());
|
forward.c | 54 msg.msg_namelen = sa_len(to); 337 sa_len(&start->addr)) == -1) 832 connect(last_server->tcpfd, &last_server->addr.sa, sa_len(&last_server->addr)) == -1)) [all...] |
/external/libpcap/ |
fad-getad.c | 89 * there's an "sa_len" field giving the length of the structure; 97 * Some versions of GNU libc use neither scheme, but has an "SA_LEN()" 99 * versions don't have "SA_LEN()" (as it was in drafts of RFC 2553 104 #ifndef SA_LEN 106 #define SA_LEN(addr) ((addr)->sa_len) 133 #define SA_LEN(addr) (get_sa_len(addr)) 135 #define SA_LEN(addr) (sizeof (struct sockaddr)) 138 #endif /* SA_LEN */ 185 addr_size = SA_LEN(addr) [all...] |
fad-gifc.c | 74 * there's an "sa_len" field giving the length of the structure; 82 * Some versions of GNU libc use neither scheme, but has an "SA_LEN()" 84 * versions don't have "SA_LEN()" (as it was in drafts of RFC 2553 91 #ifndef SA_LEN 93 #define SA_LEN(addr) ((addr)->sa_len) 95 #define SA_LEN(addr) (sizeof (struct sockaddr)) 97 #endif /* SA_LEN */ 114 * that no address is more than 255 bytes (on systems where the "sa_len" 211 n = SA_LEN(&ifrp->ifr_addr) + sizeof(ifrp->ifr_name) [all...] |
/external/ipsec-tools/src/racoon/ |
sockmisc.c | 98 if (addr1->sa_len != addr2->sa_len 152 if (addr1->sa_len != addr2->sa_len 217 if (addr1->sa_len != addr2->sa_len 855 new->sa_len = len;
|
/external/webrtc/webrtc/base/ |
macifaddrs_converter.cc | 217 memcpy(&ifr.ifr_ifru.ifru_addr, sock_addr, sock_addr->sa_len);
|
/system/netd/tests/ |
dns_responder.cpp | 58 std::string addr2str(const sockaddr* sa, socklen_t sa_len) { 60 int rv = getnameinfo(sa, sa_len, host_str, sizeof(host_str), nullptr, 0, 686 socklen_t sa_len = sizeof(sa); local 690 (sockaddr*) &sa, &sa_len); 702 reinterpret_cast<const sockaddr*>(&sa), sa_len); 704 addr2str(reinterpret_cast<const sockaddr*>(&sa), sa_len);
|
/external/avahi/avahi-autoipd/ |
main.c | 462 socklen_t sa_len; local 482 sa_len = sizeof(sa); 483 if (getsockname(fd, (struct sockaddr*) &sa, &sa_len) < 0) { 529 socklen_t sa_len; local 548 sa_len = sizeof(sa); 549 if ((r = recvfrom(fd, (*packet)->ether_payload, s, 0, (struct sockaddr*) &sa, &sa_len)) < 0) { [all...] |
iface-bsd.c | 353 sa_size = sa->sa_len;
|
/external/ipsec-tools/src/libipsec/ |
libpfkey.h | 213 return sa->sa_len;
|
/external/tcpdump/missing/ |
getnameinfo.c | 119 if (sa->sa_len != salen)
|
/external/wpa_supplicant_8/src/eap_common/ |
ikev2_common.h | 297 size_t sa_len; member in struct:ikev2_payloads
|
/external/avahi/avahi-core/ |
iface-pfroute.c | 114 #define ADVANCE(x, n) (x += ROUNDUP((n)->sa_len)) 163 if (sa->sa_len == 0)
|