Home
last modified time | relevance | path

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

/system/netd/include/
DFwmarkCommand.h31 sockaddr_in6 sin6; member
42 addr.sin6 = *((struct sockaddr_in6*) saddr); in FwmarkConnectInfo()
/system/netd/libnetdutils/
DInternetAddresses.cpp78 sockaddr_in6* sin6 = (sockaddr_in6*) res[0].ai_addr; in forString() local
79 if (ip) *ip = IPAddress(sin6->sin6_addr, sin6->sin6_scope_id); in forString()
/system/netd/resolv/
Dres_init.cpp328 size = sizeof(set->sin6); in res_setservers()
330 memcpy(&statp->_u._ext.ext->nsaddrs[nserv], &set->sin6, size); in res_setservers()
332 memcpy(&statp->nsaddr_list[nserv], &set->sin6, size); in res_setservers()
369 size = sizeof(set->sin6); in res_getservers()
371 memcpy(&set->sin6, &statp->_u._ext.ext->nsaddrs[i], size); in res_getservers()
373 memcpy(&set->sin6, &statp->nsaddr_list[i], size); in res_getservers()
DDnsProxyListener.cpp195 sockaddr_in6 sin6 = {.sin6_family = AF_INET6}; in extractResNsendAnswers() local
196 memcpy(&sin6.sin6_addr, rdata, sizeof(sin6.sin6_addr)); in extractResNsendAnswers()
197 addIpAddrWithinLimit(ip_addrs, (sockaddr*) &sin6, sizeof(sin6)); in extractResNsendAnswers()
235 sockaddr_in6 sin6 = {.sin6_family = AF_INET6, .sin6_addr = *list[i]}; in extractGetHostByNameAnswers() local
236 addIpAddrWithinLimit(ip_addrs, (sockaddr*) &sin6, sizeof(sin6)); in extractGetHostByNameAnswers()
467 struct sockaddr_in6* sin6 = (struct sockaddr_in6*) ai->ai_addr; in synthesizeNat64PrefixWithARecord() local
468 memset(sin6, 0, sizeof(sockaddr_in6)); in synthesizeNat64PrefixWithARecord()
472 sin6->sin6_addr = v6prefix->sin6_addr; in synthesizeNat64PrefixWithARecord()
473 sin6->sin6_addr.s6_addr32[3] = sinOriginal.sin_addr.s_addr; in synthesizeNat64PrefixWithARecord()
474 sin6->sin6_family = AF_INET6; in synthesizeNat64PrefixWithARecord()
[all …]
Dgetaddrinfo.cpp243 sockaddr_union addr = {.sin6 = sin6_test}; in have_ipv6()
594 struct sockaddr_in6* sin6; in explore_numeric_scope() local
632 sin6 = (struct sockaddr_in6*) (void*) cur->ai_addr; in explore_numeric_scope()
633 if (ip6_str2scopeid(scope, sin6, &scopeid) == -1) { in explore_numeric_scope()
637 sin6->sin6_scope_id = scopeid; in explore_numeric_scope()
769 static int ip6_str2scopeid(const char* scope, struct sockaddr_in6* sin6, u_int32_t* scopeid) { in ip6_str2scopeid() argument
775 assert(sin6 != NULL); in ip6_str2scopeid()
778 a6 = &sin6->sin6_addr; in ip6_str2scopeid()
1252 const struct sockaddr_in6* a1_src = &a1->src_addr.sin6; in _rfc6724_compare()
1254 const struct sockaddr_in6* a2_src = &a2->src_addr.sin6; in _rfc6724_compare()
Dresolver_test.cpp3024 struct sockaddr_in6 sin6; in TEST_F() local
3033 memset(&sin6, 0, sizeof(sin6)); in TEST_F()
3034 sin6.sin6_family = AF_INET6; in TEST_F()
3035 inet_pton(AF_INET6, config.addr.c_str(), &sin6.sin6_addr); in TEST_F()
3036 rv = getnameinfo((const struct sockaddr*) &sin6, sizeof(sin6), host, sizeof(host), in TEST_F()
3108 struct sockaddr_in6 sin6; in TEST_F() local
3109 memset(&sin6, 0, sizeof(sin6)); in TEST_F()
3110 sin6.sin6_family = AF_INET6; in TEST_F()
3111 inet_pton(AF_INET6, config.addr.c_str(), &sin6.sin6_addr); in TEST_F()
3112 int rv = getnameinfo((const struct sockaddr*) &sin6, sizeof(sin6), host, sizeof(host), in TEST_F()
[all …]
Dres_send.cpp218 u.sin6.sin6_family = family; in random_bind()
219 slen = sizeof u.sin6; in random_bind()
233 u.sin6.sin6_port = htons(port); in random_bind()
243 u.sin6.sin6_port = 0; in random_bind()
Ddns_tls_test.cpp57 sockaddr_in6* sin6 = reinterpret_cast<sockaddr_in6*>(parsed); in parseServer() local
58 if (inet_pton(AF_INET6, server, &(sin6->sin6_addr)) == 1){ in parseServer()
60 sin6->sin6_family = AF_INET6; in parseServer()
61 sin6->sin6_port = htons(port); in parseServer()
/system/netd/tests/benchmarks/
Dconnect_benchmark.cpp83 sockaddr_in6 sin6 = { .sin6_family = AF_INET6 }; in bindAndListen() local
84 if (bind(s, (sockaddr*) &sin6, sizeof(sin6)) == 0) { in bindAndListen()
/system/netd/server/
DNetdConstants.cpp130 sockaddr_in6 *sin6 = (sockaddr_in6 *) res[0].ai_addr; in parsePrefix() local
131 rawAddress = &sin6->sin6_addr; in parsePrefix()
DClatdController.cpp213 sockaddr_in6 sin6 = {.sin6_family = AF_INET6, .sin6_addr = nat64Prefix}; in generateIpv6Address() local
214 if (connect(s, reinterpret_cast<struct sockaddr*>(&sin6), sizeof(sin6)) == -1) { in generateIpv6Address()
218 socklen_t len = sizeof(sin6); in generateIpv6Address()
219 if (getsockname(s, reinterpret_cast<struct sockaddr*>(&sin6), &len) == -1) { in generateIpv6Address()
223 *v6 = sin6.sin6_addr; in generateIpv6Address()
DSockDiagTest.cpp46 sockaddr_in6 sin6 = { .sin6_family = AF_INET6, .sin6_port = htons(port) }; in bindAndListen() local
47 if (bind(s, (sockaddr *) &sin6, sizeof(sin6)) == 0) { in bindAndListen()
191 sockaddr_in6 *sin6 = (sockaddr_in6 *) sa; in fillDiagAddr() local
192 memcpy(addr, &sin6->sin6_addr, sizeof(sin6->sin6_addr)); in fillDiagAddr()
/system/netd/resolv/include/netd_resolv/
Dresolv.h38 struct sockaddr_in6 sin6; member
/system/netd/tests/
Dsock_diag_test.cpp38 sockaddr_in6 sin6 = { .sin6_family = AF_INET6, .sin6_port = htons(port) }; in bindAndListen() local
39 if (bind(s, (sockaddr *) &sin6, sizeof(sin6)) == 0) { in bindAndListen()
/system/core/libnetutils/
Difc_utils.c298 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) &ss; in ifc_act_on_address() local
299 addr = &sin6->sin6_addr; in ifc_act_on_address()