Home
last modified time | relevance | path

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

/libcore/luni/src/main/native/
DNetworkUtilities.cpp36 const sockaddr_in6& sin6 = reinterpret_cast<const sockaddr_in6&>(ss); in sockaddrToInetAddress() local
37 if (ss.ss_family == AF_INET6 && IN6_IS_ADDR_V4MAPPED(&sin6.sin6_addr)) { in sockaddrToInetAddress()
45 sin.sin_port = sin6.sin6_port; in sockaddrToInetAddress()
46 memcpy(&sin.sin_addr.s_addr, &sin6.sin6_addr.s6_addr[12], 4); in sockaddrToInetAddress()
61 const sockaddr_in6& sin6 = reinterpret_cast<const sockaddr_in6&>(ss); in sockaddrToInetAddress() local
62 rawAddress = &sin6.sin6_addr.s6_addr; in sockaddrToInetAddress()
64 sin_port = ntohs(sin6.sin6_port); in sockaddrToInetAddress()
65 scope_id = sin6.sin6_scope_id; in sockaddrToInetAddress()
147 sockaddr_in6& sin6 = reinterpret_cast<sockaddr_in6&>(ss); in inetAddressToSockaddr() local
148 sin6.sin6_port = htons(port); in inetAddressToSockaddr()
[all …]
Dlibcore_io_Linux.cpp107 const sockaddr_in6 *sin6 = reinterpret_cast<const sockaddr_in6*>(sa); in isIPv4MappedAddress() local
109 (IN6_IS_ADDR_V4MAPPED(&sin6->sin6_addr) || in isIPv4MappedAddress()
110 IN6_IS_ADDR_UNSPECIFIED(&sin6->sin6_addr)); // We map 0.0.0.0 to ::, so :: is mapped. in isIPv4MappedAddress()
/libcore/ojluni/src/main/native/
DNet.c161 struct sockaddr_in6* sin6; in initGroupSourceReq() local
165 sin6 = (struct sockaddr_in6*)&(req->gsr_group); in initGroupSourceReq()
166 sin6->sin6_family = AF_INET6; in initGroupSourceReq()
167 COPY_INET6_ADDRESS(env, group, (jbyte*)&(sin6->sin6_addr)); in initGroupSourceReq()
169 sin6 = (struct sockaddr_in6*)&(req->gsr_source); in initGroupSourceReq()
170 sin6->sin6_family = AF_INET6; in initGroupSourceReq()
171 COPY_INET6_ADDRESS(env, source, (jbyte*)&(sin6->sin6_addr)); in initGroupSourceReq()
Dnet_util_md.c107 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)him;
108 if (sin6->sin6_family == AF_INET6 && (sin6->sin6_scope_id == 0)) {
111 sin6->sin6_scope_id = defaultIndex;