Home
last modified time | relevance | path

Searched refs:sin6 (Results 1 – 6 of 6) sorted by relevance

/packages/modules/DnsResolver/
DDnsProxyListener.cpp187 sockaddr_in6 sin6 = {.sin6_family = AF_INET6}; in extractResNsendAnswers() local
188 memcpy(&sin6.sin6_addr, rdata, sizeof(sin6.sin6_addr)); in extractResNsendAnswers()
189 addIpAddrWithinLimit(ip_addrs, (sockaddr*) &sin6, sizeof(sin6)); in extractResNsendAnswers()
227 sockaddr_in6 sin6 = {.sin6_family = AF_INET6, .sin6_addr = *list[i]}; in extractGetHostByNameAnswers() local
228 addIpAddrWithinLimit(ip_addrs, (sockaddr*) &sin6, sizeof(sin6)); in extractGetHostByNameAnswers()
521 struct sockaddr_in6* sin6 = (struct sockaddr_in6*) ai->ai_addr; in synthesizeNat64PrefixWithARecord() local
522 memset(sin6, 0, sizeof(sockaddr_in6)); in synthesizeNat64PrefixWithARecord()
526 sin6->sin6_addr = v6prefix->sin6_addr; in synthesizeNat64PrefixWithARecord()
527 sin6->sin6_addr.s6_addr32[3] = sinOriginal.sin_addr.s_addr; in synthesizeNat64PrefixWithARecord()
528 sin6->sin6_family = AF_INET6; in synthesizeNat64PrefixWithARecord()
[all …]
Dgetaddrinfo.cpp247 sockaddr_union addr = {.sin6 = sin6_test}; in have_ipv6()
618 struct sockaddr_in6* sin6; in explore_numeric_scope() local
656 sin6 = (struct sockaddr_in6*) (void*) cur->ai_addr; in explore_numeric_scope()
657 if (ip6_str2scopeid(scope, sin6, &scopeid) == -1) { in explore_numeric_scope()
661 sin6->sin6_scope_id = scopeid; in explore_numeric_scope()
791 static int ip6_str2scopeid(const char* scope, struct sockaddr_in6* sin6, uint32_t* scopeid) { in ip6_str2scopeid() argument
797 assert(sin6 != NULL); in ip6_str2scopeid()
800 a6 = &sin6->sin6_addr; in ip6_str2scopeid()
1265 const struct sockaddr_in6* a1_src = &a1->src_addr.sin6; in _rfc6724_compare()
1267 const struct sockaddr_in6* a2_src = &a2->src_addr.sin6; in _rfc6724_compare()
Dres_send.cpp257 u.sin6.sin6_family = family; in random_bind()
258 slen = sizeof u.sin6; in random_bind()
272 u.sin6.sin6_port = htons(port); in random_bind()
282 u.sin6.sin6_port = 0; in random_bind()
Dresolv_tls_unit_test.cpp55 sockaddr_in6* sin6 = reinterpret_cast<sockaddr_in6*>(parsed); in parseServer() local
56 if (inet_pton(AF_INET6, server, &(sin6->sin6_addr)) == 1){ in parseServer()
58 sin6->sin6_family = AF_INET6; in parseServer()
59 sin6->sin6_port = htons(port); in parseServer()
Dresolv_private.h84 struct sockaddr_in6 sin6; member
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp3467 struct sockaddr_in6 sin6; in TEST_F() local
3476 memset(&sin6, 0, sizeof(sin6)); in TEST_F()
3477 sin6.sin6_family = AF_INET6; in TEST_F()
3478 inet_pton(AF_INET6, config.addr.c_str(), &sin6.sin6_addr); in TEST_F()
3479 rv = getnameinfo((const struct sockaddr*)&sin6, sizeof(sin6), host, sizeof(host), in TEST_F()
3553 struct sockaddr_in6 sin6; in TEST_F() local
3554 memset(&sin6, 0, sizeof(sin6)); in TEST_F()
3555 sin6.sin6_family = AF_INET6; in TEST_F()
3556 inet_pton(AF_INET6, config.addr.c_str(), &sin6.sin6_addr); in TEST_F()
3557 int rv = getnameinfo((const struct sockaddr*)&sin6, sizeof(sin6), host, sizeof(host), in TEST_F()
[all …]