Searched refs:sin6 (Results 1 – 7 of 7) sorted by relevance
/packages/modules/DnsResolver/ |
D | DnsProxyListener.cpp | 170 sockaddr_in6 sin6 = {.sin6_family = AF_INET6}; in extractResNsendAnswers() local 171 memcpy(&sin6.sin6_addr, rdata, sizeof(sin6.sin6_addr)); in extractResNsendAnswers() 172 addIpAddrWithinLimit(ip_addrs, (sockaddr*)&sin6, sizeof(sin6)); in extractResNsendAnswers() 210 sockaddr_in6 sin6 = {.sin6_family = AF_INET6, .sin6_addr = *list[i]}; in extractGetHostByNameAnswers() local 211 addIpAddrWithinLimit(ip_addrs, (sockaddr*)&sin6, sizeof(sin6)); in extractGetHostByNameAnswers() 531 struct sockaddr_in6* sin6 = (struct sockaddr_in6*)ai->ai_addr; in synthesizeNat64PrefixWithARecord() local 532 memset(sin6, 0, sizeof(sockaddr_in6)); in synthesizeNat64PrefixWithARecord() 536 sin6->sin6_addr = v6prefix->sin6_addr; in synthesizeNat64PrefixWithARecord() 537 sin6->sin6_addr.s6_addr32[3] = sinOriginal.sin_addr.s_addr; in synthesizeNat64PrefixWithARecord() 538 sin6->sin6_family = AF_INET6; in synthesizeNat64PrefixWithARecord() [all …]
|
D | getaddrinfo.cpp | 246 sockaddr_union addr = {.sin6 = sin6_test}; in have_ipv6() 617 struct sockaddr_in6* sin6; in explore_numeric_scope() local 655 sin6 = (struct sockaddr_in6*) (void*) cur->ai_addr; in explore_numeric_scope() 656 if (ip6_str2scopeid(scope, sin6, &scopeid) == -1) { in explore_numeric_scope() 660 sin6->sin6_scope_id = scopeid; in explore_numeric_scope() 790 static int ip6_str2scopeid(const char* scope, struct sockaddr_in6* sin6, uint32_t* scopeid) { in ip6_str2scopeid() argument 796 assert(sin6 != NULL); in ip6_str2scopeid() 799 a6 = &sin6->sin6_addr; in ip6_str2scopeid() 1264 const struct sockaddr_in6* a1_src = &a1->src_addr.sin6; in _rfc6724_compare() 1266 const struct sockaddr_in6* a2_src = &a2->src_addr.sin6; in _rfc6724_compare()
|
D | res_send.cpp | 254 u.sin6.sin6_family = family; in random_bind() 255 slen = sizeof u.sin6; in random_bind() 269 u.sin6.sin6_port = htons(port); in random_bind() 279 u.sin6.sin6_port = 0; in random_bind()
|
D | resolv_private.h | 86 struct sockaddr_in6 sin6; member
|
/packages/modules/Connectivity/Tethering/jni/ |
D | android_net_util_TetheringUtils.cpp | 137 const struct sockaddr_in6 sin6 = { in android_net_util_setupRaSocket() local 144 auto sa = reinterpret_cast<const struct sockaddr *>(&sin6); in android_net_util_setupRaSocket() 145 len = sizeof(sin6); in android_net_util_setupRaSocket()
|
/packages/modules/DnsResolver/tests/ |
D | resolv_integration_test.cpp | 3631 struct sockaddr_in6 sin6; in TEST_F() local 3640 memset(&sin6, 0, sizeof(sin6)); in TEST_F() 3641 sin6.sin6_family = AF_INET6; in TEST_F() 3642 inet_pton(AF_INET6, config.addr.c_str(), &sin6.sin6_addr); in TEST_F() 3643 rv = getnameinfo((const struct sockaddr*)&sin6, sizeof(sin6), host, sizeof(host), in TEST_F() 3717 struct sockaddr_in6 sin6; in TEST_F() local 3718 memset(&sin6, 0, sizeof(sin6)); in TEST_F() 3719 sin6.sin6_family = AF_INET6; in TEST_F() 3720 inet_pton(AF_INET6, config.addr.c_str(), &sin6.sin6_addr); in TEST_F() 3721 int rv = getnameinfo((const struct sockaddr*)&sin6, sizeof(sin6), host, sizeof(host), in TEST_F() [all …]
|
D | resolv_tls_unit_test.cpp | 59 sockaddr_in6* sin6 = reinterpret_cast<sockaddr_in6*>(parsed); in parseServer() local 60 if (inet_pton(AF_INET6, server, &(sin6->sin6_addr)) == 1){ in parseServer() 62 sin6->sin6_family = AF_INET6; in parseServer() 63 sin6->sin6_port = htons(port); in parseServer()
|