Searched refs:sin6 (Results 1 - 4 of 4) sorted by relevance

/libcore/luni/src/main/native/
H A DNetworkUtilities.cpp34 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;
136 sockaddr_in6& sin6 = reinterpret_cast<sockaddr_in6&>(ss); local
137 sin6
[all...]
H A Dlibcore_io_Posix.cpp86 const sockaddr_in6 *sin6 = reinterpret_cast<const sockaddr_in6*>(sa); local
88 (IN6_IS_ADDR_V4MAPPED(&sin6->sin6_addr) ||
89 IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)); // We map 0.0.0.0 to ::, so :: is mapped.
/libcore/ojluni/src/main/native/
H A DNet.c105 struct sockaddr_in6* sin6; local
109 sin6 = (struct sockaddr_in6*)&(req->gsr_group);
110 sin6->sin6_family = AF_INET6;
111 COPY_INET6_ADDRESS(env, group, (jbyte*)&(sin6->sin6_addr));
113 sin6 = (struct sockaddr_in6*)&(req->gsr_source);
114 sin6->sin6_family = AF_INET6;
115 COPY_INET6_ADDRESS(env, source, (jbyte*)&(sin6->sin6_addr));
H A Dnet_util_md.c101 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)him; local
102 if (sin6->sin6_family == AF_INET6 && (sin6->sin6_scope_id == 0)) {
105 sin6->sin6_scope_id = defaultIndex;

Completed in 95 milliseconds