/frameworks/opt/net/voip/src/jni/rtp/ |
util.cpp | 50 sockaddr_in6 *sin6 = (sockaddr_in6 *)ss; local 51 if (inet_pton(AF_INET6, address, &(sin6->sin6_addr)) > 0) { 52 sin6->sin6_family = AF_INET6; 53 sin6->sin6_port = htons(port);
|
/libcore/luni/src/main/native/ |
NetworkUtilities.cpp | 34 const sockaddr_in6& sin6 = reinterpret_cast<const sockaddr_in6&>(ss); local 35 if (ss.ss_family == AF_INET6 && IN6_IS_ADDR_V4MAPPED(&sin6.sin6_addr)) { 43 sin.sin_port = sin6.sin6_port; 44 memcpy(&sin.sin_addr.s_addr, &sin6.sin6_addr.s6_addr[12], 4); 59 const sockaddr_in6& sin6 = reinterpret_cast<const sockaddr_in6&>(ss); local 60 rawAddress = &sin6.sin6_addr.s6_addr; 62 sin_port = ntohs(sin6.sin6_port); 63 scope_id = sin6.sin6_scope_id; 161 sockaddr_in6& sin6 = reinterpret_cast<sockaddr_in6&>(ss); local 162 sin6.sin6_port = htons(port) [all...] |
/external/ipsec-tools/src/racoon/ |
grabmyaddr.c | 338 struct sockaddr_in6 *sin6; local 384 sin6 = (struct sockaddr_in6 *)p->addr; 385 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr) 386 || IN6_IS_ADDR_SITELOCAL(&sin6->sin6_addr)) { 387 sin6->sin6_scope_id = 388 ntohs(*(u_int16_t *)&sin6->sin6_addr.s6_addr[2]); 389 sin6->sin6_addr.s6_addr[2] = 0; 390 sin6->sin6_addr.s6_addr[3] = 0; 395 sin6 = (struct sockaddr_in6 *)p->addr; 396 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr [all...] |
sockmisc.c | 396 struct sockaddr_in6 *sin6; local 436 && otolen >= sizeof(*sin6)) { 438 *tolen = sizeof(*sin6); 439 sin6 = (struct sockaddr_in6 *)to; 440 memset(sin6, 0, sizeof(*sin6)); 441 sin6->sin6_family = AF_INET6; 443 sin6->sin6_len = sizeof(*sin6); 445 memcpy(&sin6->sin6_addr, &pi->ipi6_addr [all...] |
sockmisc.h | 41 struct sockaddr_in6 sin6; member in union:netaddr::__anon19420
|
/external/tcpdump/missing/ |
getnameinfo.c | 182 struct sockaddr_in6 *sin6; local 183 sin6 = (struct sockaddr_in6 *)sa; 184 switch (sin6->sin6_addr.s6_addr[0]) { 186 if (IN6_IS_ADDR_V4MAPPED(&sin6->sin6_addr)) 188 else if (IN6_IS_ADDR_LOOPBACK(&sin6->sin6_addr)) 194 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) { 197 else if (IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr))
|
getaddrinfo.c | 848 struct sockaddr_in6 *sin6; 891 sin6 = (struct sockaddr_in6 *)cur->ai_addr; 892 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr) || 893 IN6_IS_ADDR_MC_LINKLOCAL(&sin6->sin6_addr)) 894 sin6->sin6_scope_id = scope;
|
/external/tcpdump/ |
print-esp.c | 62 struct sockaddr_in6 sin6; member in union:sockaddr_storage::__anon26860 186 struct sockaddr_in6 *sin6; local 201 sin6 = (struct sockaddr_in6 *)&sa1.daddr; 202 if (inet_pton(AF_INET6, spikey, &sin6->sin6_addr) == 1) { 204 sin6->sin6_len = sizeof(struct sockaddr_in6); 206 sin6->sin6_family = AF_INET6; 420 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&sa->daddr; 422 sin6->sin6_family == AF_INET6 && 423 memcmp(&sin6->sin6_addr, &ip6->ip6_dst,
|
print-isakmp.c | 185 struct sockaddr_in6 *sin6; local 223 sin6 = (struct sockaddr_in6 *)&cookiecache[ninitiator].iaddr; 225 sin6->sin6_len = sizeof(struct sockaddr_in6); 227 sin6->sin6_family = AF_INET6; 228 memcpy(&sin6->sin6_addr, &ip6->ip6_src, sizeof(ip6->ip6_src)); 229 sin6 = (struct sockaddr_in6 *)&cookiecache[ninitiator].raddr; 231 sin6->sin6_len = sizeof(struct sockaddr_in6); 233 sin6->sin6_family = AF_INET6; 234 memcpy(&sin6->sin6_addr, &ip6->ip6_dst, sizeof(ip6->ip6_dst)); 255 struct sockaddr_in6 *sin6; local [all...] |
/external/mdnsresponder/mDNSPosix/ |
mDNSUNP.c | 92 struct sockaddr_in6 *sin6; local 156 sin6=calloc(1, sizeof(struct sockaddr_in6)); 159 sin6->sin6_family=family; 160 sin6->sin6_addr=*addrptr; 161 sin6->sin6_scope_id=scope; 162 memcpy(ifi->ifi_netmask, sin6, sizeof(struct sockaddr_in6)); 163 free(sin6); 642 struct sockaddr_in6 *sin6 = (struct sockaddr_in6*)&pktp->ipi_addr; 645 sin6->sin6_family = AF_INET6; 647 sin6->sin6_len = sizeof(*sin6) [all...] |
mDNSPosix.c | 126 struct sockaddr_in6 *sin6 = (struct sockaddr_in6*)sa; local 128 assert(sin6->sin6_len == sizeof(*sin6)); 131 ipAddr->ip.v6 = *(mDNSv6Addr*)&sin6->sin6_addr; 132 if (ipPort) ipPort->NotAnInteger = sin6->sin6_port; 185 struct sockaddr_in6 *sin6 = (struct sockaddr_in6*)&to; local 186 mDNSPlatformMemZero(sin6, sizeof(*sin6)); 188 sin6->sin6_len = sizeof(*sin6); [all...] |
/external/libppp/src/ |
server.c | 96 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&ss; local 136 if (ntohs(sin6->sin6_port) < 1024) { 139 ncpaddr_ntoa(&addr), ntohs(sin6->sin6_port)); 145 ncpaddr_ntoa(&addr), ntohs(sin6->sin6_port)); 176 ncpaddr_ntoa(&addr), ntohs(sin6->sin6_port)); 315 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&ss; local 328 sin6->sin6_family = AF_INET6; 329 sin6->sin6_port = htons(port); 330 sin6->sin6_len = (u_int8_t)sizeof ss; 331 sz = sizeof *sin6; [all...] |
ncpaddr.c | 164 adjust_linklocal(struct sockaddr_in6 *sin6) 172 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr) || 173 IN6_IS_ADDR_MC_LINKLOCAL(&sin6->sin6_addr)) { 174 sin6->sin6_scope_id = 175 ntohs(*(u_short *)&sin6->sin6_addr.s6_addr[2]); 176 *(u_short *)&sin6->sin6_addr.s6_addr[2] = 0; 374 struct sockaddr_in6 sin6; local 384 memset(&sin6, '\0', sizeof(sin6)); 385 sin6.sin6_len = sizeof(sin6) 890 const struct in6_addr *sin6; local [all...] |
/bionic/libc/netbsd/net/ |
getnameinfo.c | 260 const struct sockaddr_in6 *sin6; local 261 sin6 = (const struct sockaddr_in6 *)(const void *)sa; 262 switch (sin6->sin6_addr.s6_addr[0]) { 264 if (IN6_IS_ADDR_V4MAPPED(&sin6->sin6_addr)) 266 else if (IN6_IS_ADDR_LOOPBACK(&sin6->sin6_addr)) 272 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) { 275 else if (IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr))
|
getaddrinfo.c | 1022 struct sockaddr_in6 *sin6; 1064 sin6 = (struct sockaddr_in6 *)(void *)cur->ai_addr; 1065 if (ip6_str2scopeid(scope, sin6, &scopeid) == -1) { 1069 sin6->sin6_scope_id = scopeid; 1242 ip6_str2scopeid(char *scope, struct sockaddr_in6 *sin6, u_int32_t *scopeid) 1249 assert(sin6 != NULL); 1252 a6 = &sin6->sin6_addr; [all...] |
/bionic/libc/netbsd/resolv/ |
res_init.c | 206 u[nserv].sin6.sin6_addr = in6addr_loopback; 208 u[nserv].sin6.sin6_addr = in6addr_any; 210 u[nserv].sin6.sin6_family = AF_INET6; 211 u[nserv].sin6.sin6_port = htons(NAMESERVER_PORT); 213 u[nserv].sin6.sin6_len = sizeof(struct sockaddr_in6); 727 size = sizeof(set->sin6); 730 &set->sin6, size); 733 &set->sin6, size); 775 size = sizeof(set->sin6); 777 memcpy(&set->sin6, [all...] |
res_send.c | 169 struct sockaddr_in6 sin6; member in union:__anon692 188 u.sin6.sin6_family = family; 189 slen = sizeof u.sin6; 203 u.sin6.sin6_port = htons(port); 214 u.sin6.sin6_port = 0; [all...] |
/external/ipsec-tools/src/libipsec/ |
key_debug.c | 785 struct sockaddr_in6 *sin6; local 803 sin6 = (void *)addr; 804 printf(" port=%u\n", ntohs(sin6->sin6_port)); 806 sin6->sin6_flowinfo, sin6->sin6_scope_id); 807 ipsec_hexdump(&sin6->sin6_addr, sizeof(sin6->sin6_addr));
|
/external/chromium_org/native_client_sdk/src/libraries/third_party/newlib-extras/netinet6/ |
in6.h | 597 struct sockaddr_in6 *sin6)); 599 struct sockaddr_in6 *sin6)); 604 #define sin6tosa(sin6) ((struct sockaddr *)(sin6))
|
/external/chromium/net/base/ |
address_list.cc | 211 const struct sockaddr_in6* sin6 = local 213 ai->ai_family = sin6->sin6_family;
|
/bionic/libc/private/ |
resolv_private.h | 201 struct sockaddr_in6 sin6; member in union:res_sockaddr_union
|
/external/wpa_supplicant_8/src/radius/ |
radius_das.c | 149 struct sockaddr_in6 sin6; member in union:__anon28921
|
radius_server.c | 881 struct sockaddr_in6 sin6; member in union:__anon28922 906 if (inet_ntop(AF_INET6, &from.sin6.sin6_addr, abuf, 909 from_port = ntohs(from.sin6.sin6_port); 915 &from.sin6.sin6_addr, 1); [all...] |
/external/dhcpcd/ |
if-bsd.c | 196 struct sockaddr_in6 sin6; member in union:sockunion
|
/external/iputils/ |
tftpd.c | 89 struct sockaddr_in6 sin6; member in union:__anon19588
|