/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);
|
/external/ipsec-tools/src/racoon/ |
sockmisc.h | 41 struct sockaddr_in6 sin6; member in union:netaddr::__anon26264
|
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...] |
/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...] |
/bionic/libc/dns/net/ |
getnameinfo.c | 246 const struct sockaddr_in6 *sin6; local 247 sin6 = (const struct sockaddr_in6 *)(const void *)sa; 248 switch (sin6->sin6_addr.s6_addr[0]) { 250 if (IN6_IS_ADDR_V4MAPPED(&sin6->sin6_addr)) 252 else if (IN6_IS_ADDR_LOOPBACK(&sin6->sin6_addr)) 258 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) { 261 else if (IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr))
|
/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))
|
/external/wpa_supplicant_8/src/radius/ |
radius_das.c | 181 struct sockaddr_in6 sin6; member in union:__anon37430
|
/system/netd/server/ |
NetdConstants.cpp | 229 sockaddr_in6 *sin6 = (sockaddr_in6 *) res[0].ai_addr; local 230 rawAddress = &sin6->sin6_addr;
|
/external/android-clat/ |
translate.c | 480 static struct sockaddr_in6 sin6 = { AF_INET6, 0, 0, { { { 0, 0, 0, 0 } } }, 0 }; local 482 .msg_name = &sin6, 483 .msg_namelen = sizeof(sin6), 488 sin6.sin6_addr = ((struct ip6_hdr *) out[CLAT_POS_IPHDR].iov_base)->ip6_dst;
|
/external/dhcpcd/ |
if-bsd.c | 196 struct sockaddr_in6 sin6; member in union:sockunion
|
/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/iputils/ |
tftpd.c | 89 struct sockaddr_in6 sin6; member in union:__anon26450
|
/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); 649 struct sockaddr_in6 *sin6 = (struct sockaddr_in6*)&pktp->ipi_addr; 652 sin6->sin6_family = AF_INET6; 654 sin6->sin6_len = sizeof(*sin6) [all...] |
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet/ |
sctp_timer.c | 1469 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&net->ro._l_addr; local 1491 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&net->ro._l_addr; local [all...] |
sctp_asconf.c | 170 struct sockaddr_in6 *sin6; local 214 sin6 = (struct sockaddr_in6 *)&sa_store; 215 bzero(sin6, sizeof(*sin6)); 216 sin6->sin6_family = AF_INET6; 218 sin6->sin6_len = sizeof(struct sockaddr_in6); 220 sin6->sin6_port = stcb->rport; 221 memcpy((caddr_t)&sin6->sin6_addr, v6addr->addr, 223 if (IN6_IS_ADDR_MULTICAST(&sin6->sin6_addr)) { 226 if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr) 324 struct sockaddr_in6 *sin6; local 459 struct sockaddr_in6 *sin6; local 853 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sa; local 899 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sa; local 1282 struct sockaddr_in6 *sin6; local 1498 struct sockaddr_in6 *sin6; local 1854 struct sockaddr_in6 *sin6, *net6; local 1939 struct sockaddr_in6 *sin6; local 2123 struct sockaddr_in6 *sin6; local 2497 struct sockaddr_in6 *sin6; local 2767 struct sockaddr_in6 sin6; local 2926 struct sockaddr_in6 *sin6; local 3089 struct sockaddr_in6 *sin6; local [all...] |
sctp_input.c | 603 struct sockaddr_in6 *sin6; local 635 sin6 = (struct sockaddr_in6 *)&store; 636 sin6->sin6_family = cp->heartbeat.hb_info.addr_family; 638 sin6->sin6_len = cp->heartbeat.hb_info.addr_len; 640 sin6->sin6_port = stcb->rport; 641 memcpy(&sin6->sin6_addr, cp->heartbeat.hb_info.address, 642 sizeof(sin6->sin6_addr)); 2082 struct sockaddr_in6 *sin6; local 2496 struct sockaddr_in6 sin6; local [all...] |
sctp_sysctl.c | 320 struct sockaddr_in6 *sin6; local 325 sin6 = (struct sockaddr_in6 *)&sctp_ifa->address.sa; 326 if (IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)) 328 if (IN6_IS_ADDR_LINKLOCAL(&sin6->sin6_addr)) { 332 if (sin6->sin6_scope_id == 0) { 335 if (sa6_recoverscope(sin6) != 0) 338 lsa6 = *sin6; 342 sin6 = &lsa6; 347 if ((site_scope == 0) && (IN6_IS_ADDR_SITELOCAL(&sin6->sin6_addr))) [all...] |
sctp_usrreq.c | 1717 struct sockaddr_in6 *sin6; local 3008 struct sockaddr_in6 *sin6; local 3835 struct sockaddr_in6 *sin6; local 3937 struct sockaddr_in6 *sin6; local 5532 struct sockaddr_in6 *sin6; local 6513 struct sockaddr_in6 *sin6; local 6661 struct sockaddr_in6 *sin6; local 7453 struct sockaddr_in6 *sin6; local [all...] |
sctputil.c | 2884 struct sockaddr_in6 *sin6; local 4482 struct sockaddr_in6 *sin6; local 5451 struct sockaddr_in6 *sin6; local 6226 struct sockaddr_in6 sin6; local [all...] |
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet6/ |
sctp6_usrreq.c | 83 in6_sin6_2_sin(struct sockaddr_in *sin, struct sockaddr_in6 *sin6) 93 sin->sin_port = sin6->sin6_port; 95 temp = sin6->sin6_addr.s6_addr16[7]; 97 temp = temp | sin6->sin6_addr.s6_addr16[6]; 101 sin->sin_addr.s_addr = sin6->sin6_addr.s6_addr32[3]; 109 struct sockaddr_in6 sin6; local 112 sin6 = *(struct sockaddr_in6 *)nam; 114 in6_sin6_2_sin(sin_p, &sin6); 1052 struct sockaddr_in6 *sin6; local 1085 sin6 = (struct sockaddr_in6 *)addr 1186 struct sockaddr_in6 *sin6; local 1334 struct sockaddr_in6 *sin6; local 1468 struct sockaddr_in6 *sin6; local 1608 struct sockaddr_in6 sin6; local 1673 struct sockaddr_in6 sin6; local [all...] |
/external/tcpdump/ |
print-esp.c | 68 struct sockaddr_in6 sin6; member in union:sockaddr_storage::__anon35228 441 struct sockaddr_in6 *sin6; local 456 sin6 = (struct sockaddr_in6 *)&sa1.daddr; 457 if (inet_pton(AF_INET6, spikey, &sin6->sin6_addr) == 1) { 459 sin6->sin6_len = sizeof(struct sockaddr_in6); 461 sin6->sin6_family = AF_INET6; 613 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&sa->daddr; 615 sin6->sin6_family == AF_INET6 && 616 UNALIGNED_MEMCMP(&sin6->sin6_addr, &ip6->ip6_dst,
|
/bionic/libc/dns/resolv/ |
res_send.c | 170 struct sockaddr_in6 sin6; member in union:__anon143 189 u.sin6.sin6_family = family; 190 slen = sizeof u.sin6; 204 u.sin6.sin6_port = htons(port); 215 u.sin6.sin6_port = 0; [all...] |
/system/core/libnetutils/ |
ifc_utils.c | 291 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) &ss; local 292 addr = &sin6->sin6_addr;
|
/bionic/libc/dns/include/ |
resolv_private.h | 204 struct sockaddr_in6 sin6; member in union:res_sockaddr_union
|