Searched refs:sin6 (Results 1 – 4 of 4) sorted by relevance
36 const sockaddr_in6& sin6 = reinterpret_cast<const sockaddr_in6&>(ss); in sockaddrToInetAddress() local37 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() local62 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() local148 sin6.sin6_port = htons(port); in inetAddressToSockaddr()[all …]
107 const sockaddr_in6 *sin6 = reinterpret_cast<const sockaddr_in6*>(sa); in isIPv4MappedAddress() local109 (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()
161 struct sockaddr_in6* sin6; in initGroupSourceReq() local165 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()
107 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;