Home
last modified time | relevance | path

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

/libcore/luni/src/main/native/
DNetworkUtilities.cpp40 const sockaddr_in6& sin6 = reinterpret_cast<const sockaddr_in6&>(ss); in sockaddrToInetAddress() local
41 if (ss.ss_family == AF_INET6 && IN6_IS_ADDR_V4MAPPED(&sin6.sin6_addr)) { in sockaddrToInetAddress()
49 sin.sin_port = sin6.sin6_port; in sockaddrToInetAddress()
50 memcpy(&sin.sin_addr.s_addr, &sin6.sin6_addr.s6_addr[12], 4); in sockaddrToInetAddress()
65 const sockaddr_in6& sin6 = reinterpret_cast<const sockaddr_in6&>(ss); in sockaddrToInetAddress() local
66 rawAddress = &sin6.sin6_addr.s6_addr; in sockaddrToInetAddress()
68 sin_port = ntohs(sin6.sin6_port); in sockaddrToInetAddress()
69 scope_id = sin6.sin6_scope_id; in sockaddrToInetAddress()
151 sockaddr_in6& sin6 = reinterpret_cast<sockaddr_in6&>(ss); in inetAddressToSockaddr() local
152 sin6.sin6_port = htons(port); in inetAddressToSockaddr()
[all …]
/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;