HomeSort by relevance Sort by last modified time
    Searched refs:sa_len (Results 1 - 25 of 37) sorted by null

1 2

  /libcore/luni/src/main/native/
NetworkUtilities.h 31 sockaddr_storage& ss, socklen_t& sa_len);
40 sockaddr_storage& ss, socklen_t& sa_len);
NetworkUtilities.cpp 103 static bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len, bool map) {
105 sa_len = 0;
116 sa_len = sizeof(ss.ss_family);
150 sa_len = sizeof(sun.sun_path);
157 // then unconditionally set sa_len to sizeof(sockaddr_storage) instead of having
170 sa_len = sizeof(sockaddr_in6);
187 sa_len = sizeof(sockaddr_in6);
194 sa_len = sizeof(sockaddr_in);
199 bool inetAddressToSockaddrVerbatim(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len) {
200 return inetAddressToSockaddr(env, inetAddress, port, ss, sa_len, false)
    [all...]
libcore_io_Posix.cpp 423 socklen_t sa_len; local
424 if (!inetAddressToSockaddr(env, javaAddress, port, ss, sa_len)) {
429 (void) NET_FAILURE_RETRY(env, int, bind, javaFd, sa, sa_len);
462 socklen_t sa_len; local
463 if (!inetAddressToSockaddr(env, javaAddress, port, ss, sa_len)) {
468 (void) NET_FAILURE_RETRY(env, int, connect, javaFd, sa, sa_len);
690 socklen_t sa_len; local
691 if (!inetAddressToSockaddrVerbatim(env, javaAddress, 0, ss, sa_len)) {
696 int rc = getnameinfo(reinterpret_cast<sockaddr*>(&ss), sa_len, buf, sizeof(buf), NULL, 0, flags);
1114 socklen_t sa_len = 0; local
1192 socklen_t sa_len; local
    [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/dnsmasq/src/
network.c 302 bind(tcpfd, (struct sockaddr *)&addr, sa_len(&addr)) == -1 ||
304 bind(fd, (struct sockaddr *)&addr, sa_len(&addr)) == -1)
342 bind(tcpfd, (struct sockaddr *)&addr, sa_len(&addr)) == -1 ||
356 bind(fd, (struct sockaddr *)&addr, sa_len(&addr)) == -1)
374 bind(tftpfd, (struct sockaddr *)&addr, sa_len(&addr)) == -1)
439 if ((rc = bind(new->fd, &iface->addr.sa, sa_len(&iface->addr))) != -1)
456 if (rc == -1 || bind(new->tcpfd, &iface->addr.sa, sa_len(&iface->addr)) == -1)
474 bind(new->tftpfd, &iface->addr.sa, sa_len(&iface->addr)) == -1)
577 if ((rc = bind(new->fd, &iface->addr.sa, sa_len(&iface->addr))) != -1)
594 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 270 int sa_len(union mysockaddr *addr) function
273 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);
325 sa_len(&start->addr)) == -1)
819 connect(last_server->tcpfd, &last_server->addr.sa, sa_len(&last_server->addr)) == -1))
  /external/chromium_org/net/dns/
address_sorter_posix.cc 355 if (!src.FromSockAddr(ifa->ifa_addr, ifa->ifa_addr->sa_len))
363 DCHECK_LE(ifa->ifa_addr->sa_len, sizeof(ifr.ifr_ifru.ifru_addr));
364 memcpy(&ifr.ifr_ifru.ifru_addr, ifa->ifa_addr, ifa->ifa_addr->sa_len);
374 if (netmask.FromSockAddr(ifa->ifa_netmask, ifa->ifa_addr->sa_len)) {
  /external/libpcap/
fad-getad.c 79 * there's an "sa_len" field giving the length of the structure;
87 * Some versions of GNU libc use neither scheme, but has an "SA_LEN()"
89 * versions don't have "SA_LEN()" (as it was in drafts of RFC 2553
94 #ifndef SA_LEN
96 #define SA_LEN(addr) ((addr)->sa_len)
123 #define SA_LEN(addr) (get_sa_len(addr))
125 #define SA_LEN(addr) (sizeof (struct sockaddr))
128 #endif /* SA_LEN */
200 addr_size = SA_LEN(addr)
    [all...]
fad-gifc.c 80 * there's an "sa_len" field giving the length of the structure;
88 * Some versions of GNU libc use neither scheme, but has an "SA_LEN()"
90 * versions don't have "SA_LEN()" (as it was in drafts of RFC 2553
97 #ifndef SA_LEN
99 #define SA_LEN(addr) ((addr)->sa_len)
101 #define SA_LEN(addr) (sizeof (struct sockaddr))
103 #endif /* SA_LEN */
120 * that no address is more than 255 bytes (on systems where the "sa_len"
346 n = SA_LEN(&ifrp->ifr_addr) + sizeof(ifrp->ifr_name)
    [all...]
  /external/libppp/src/
arp.c 84 addr.sa_len = sizeof(addr);
187 arpreq.arp_ha.sa_len = sizeof(struct sockaddr);
route.c 97 (int)phost->sa_family, (int)phost->sa_len);
325 wp += ROUNDUP(sa[rtax]->sa_len);
902 p += memcpy_roundup(p, dst, dst->sa_len);
906 p += memcpy_roundup(p, gw, gw->sa_len);
909 p += memcpy_roundup(p, mask, mask->sa_len);
server.c 106 else if (sa->sa_len == 0) {
  /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/dhcpcd/
if-bsd.c 67 #define RT_ADVANCE(x, n) (x += RT_ROUNDUP((n)->sa_len))
211 l = RT_ROUNDUP(_su.sa.sa_len); \
425 rti_info[RTAX_IFA]->sa_len);
net.c 446 MIN(ifa->ifa_addr->sa_len, sizeof(iflr.addr)));
  /external/ipsec-tools/src/libipsec/
libpfkey.h 213 return sa->sa_len;
  /external/tcpdump/missing/
getnameinfo.c 124 if (sa->sa_len != salen)
  /external/wpa_supplicant_8/src/eap_common/
ikev2_common.h 301 size_t sa_len; member in struct:ikev2_payloads
  /bionic/libc/netbsd/resolv/
res_send.c 680 /* There are people do not set sa_len. Be forgiving to them. */
681 if (sa->sa_len)
682 return (sa->sa_len);
    [all...]
  /external/ppp/pppd/plugins/rp-pppoe/
if.c 166 (ifr->ifr_addr.sa_len > sizeof(struct sockaddr)
167 ? ifr->ifr_addr.sa_len
  /external/e2fsprogs/lib/uuid/
gen_uuid.c 235 * max(sizeof(ifreq), sizeof(ifreq.ifr_name)+ifreq.ifr_addr.sa_len
236 * However, under earlier systems, sa_len isn't present, so the size is
244 sizeof((i).ifr_name)+(i).ifr_addr.sa_len)
  /external/ipsec-tools/
setup.c 223 .ss_len = src->sa_len,

Completed in 594 milliseconds

1 2