Home
last modified time | relevance | path

Searched refs:AF_INET6 (Results 1 – 17 of 17) sorted by relevance

/libcore/ojluni/src/main/native/
Dnet_util_md.c108 if (sin6->sin6_family == AF_INET6 && (sin6->sin6_scope_id == 0)) {
323 #ifndef AF_INET6 in IPv6_supported()
327 #ifdef AF_INET6 in IPv6_supported()
395 numifs.lifn_family = AF_INET6; in IPv6_supported()
495 #ifdef AF_INET6 in NET_AllocSockaddr()
602 if (inet_pton(AF_INET6, dest_str, &dest_addr) < 0) {
758 #ifdef AF_INET6 in NET_InetAddressToSockaddr()
788 him6->sin6_family = AF_INET6; in NET_InetAddressToSockaddr()
830 #ifdef AF_INET6
831 if (him->sa_family == AF_INET6) {
[all …]
DNet.c157 #ifdef AF_INET6
166 sin6->sin6_family = AF_INET6; in initGroupSourceReq()
170 sin6->sin6_family = AF_INET6; in initGroupSourceReq()
243 #ifdef AF_INET6 in Java_sun_nio_ch_Net_socket0()
244 int domain = (ipv6_available() && preferIPv6) ? AF_INET6 : AF_INET; in Java_sun_nio_ch_Net_socket0()
255 #ifdef AF_INET6 in Java_sun_nio_ch_Net_socket0()
257 if (domain == AF_INET6) { in Java_sun_nio_ch_Net_socket0()
285 int level = (domain == AF_INET6) ? IPPROTO_IPV6 : IPPROTO_IP; in Java_sun_nio_ch_Net_socket0()
297 #if defined(__linux__) && defined(AF_INET6) in Java_sun_nio_ch_Net_socket0()
299 if (domain == AF_INET6 && type == SOCK_DGRAM) { in Java_sun_nio_ch_Net_socket0()
[all …]
Dnet_util.c209 #ifdef AF_INET6 in NET_SockaddrToInetAddress()
210 if (him->sa_family == AF_INET6) { in NET_SockaddrToInetAddress()
288 #ifdef AF_INET6 in NET_SockaddrEqualsInetAddress()
289 family = getInetAddress_family(env, iaObj) == IPv4? AF_INET : AF_INET6; in NET_SockaddrEqualsInetAddress()
290 if (him->sa_family == AF_INET6) { in NET_SockaddrEqualsInetAddress()
300 if (family == AF_INET6) { in NET_SockaddrEqualsInetAddress()
DDatagramChannelImpl.c108 #ifdef AF_INET6 in Java_sun_nio_ch_DatagramChannelImpl_disconnect0()
112 him6->sin6_family = AF_INET6; in Java_sun_nio_ch_DatagramChannelImpl_disconnect0()
Dnet_util_md.h140 #ifdef AF_INET6
Dnet_util.h40 #define IPv6 AF_INET6
/libcore/luni/src/main/native/
DNetworkUtilities.cpp37 if (ss.ss_family == AF_INET6 && IN6_IS_ADDR_V4MAPPED(&sin6.sin6_addr)) { in sockaddrToInetAddress()
60 } else if (ss.ss_family == AF_INET6) { in sockaddrToInetAddress()
120 if (ss.ss_family != AF_INET && ss.ss_family != AF_INET6) { in inetAddressToSockaddr()
149 if (ss.ss_family == AF_INET6) { in inetAddressToSockaddr()
173 sin6.sin6_family = AF_INET6; in inetAddressToSockaddr()
Dlibcore_io_Linux.cpp108 return sa != NULL && sa->sa_family == AF_INET6 && in isIPv4MappedAddress()
398 if (ss.ss_family == AF_INET || ss.ss_family == AF_INET6) { in makeSocketAddress()
1342 if (ai->ai_family == AF_INET || ai->ai_family == AF_INET6) { in Linux_android_getaddrinfo()
1361 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) { in Linux_android_getaddrinfo()
1635 case AF_INET6: in Linux_getifaddrs()
1720 } else if (family == AF_INET6) { in Linux_inet_pton()
2134 if (ss.ss_family == AF_INET || ss.ss_family == AF_INET6) { in Linux_recvfromBytes()
Dandroid_system_OsConstants.cpp68 initConstant(env, c, "AF_INET6", AF_INET6); in OsConstants_initConstants()
/libcore/luni/src/test/java/libcore/libcore/io/
DBlockGuardOsTest.java19 import static android.system.OsConstants.AF_INET6;
150 FileDescriptor udpSocket = Libcore.os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in test_connect_networkPolicy()
160 FileDescriptor tcpSocket = Libcore.os.socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP); in test_connect_networkPolicy()
/libcore/ojluni/src/main/java/java/net/
DInet6Address.java401 holder.init(null, AF_INET6); in Inet6Address()
409 holder.init(hostName, AF_INET6); in Inet6Address()
526 family = AF_INET6; in initif()
669 if (holder().getFamily() != AF_INET6) { in readObject()
DInet6AddressImpl.java42 import static android.system.OsConstants.AF_INET6;
221 fd = IoBridge.socket(AF_INET6, SOCK_STREAM, 0); in tcpEcho()
247 int domain = isIPv4 ? AF_INET : AF_INET6; in icmpEcho()
DPlainDatagramSocketImpl.java37 import static android.system.OsConstants.AF_INET6;
198 fd = IoBridge.socket(AF_INET6, SOCK_DGRAM, 0); in datagramSocketCreate()
DPlainSocketImpl.java42 import static android.system.OsConstants.AF_INET6;
128 fd.setInt$(IoBridge.socket(AF_INET6, isStream ? SOCK_STREAM : SOCK_DGRAM, 0).getInt$()); in socketCreate()
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java508 return Os.socket(AF_INET6, SOCK_DGRAM, 0); in makeIpv6Socket()
546 for (int family : new int[] { AF_INET, AF_INET6, AF_NETLINK }) { in testUnknownSocketAddressSubclass()
677 checkByteBufferPositions_sendto_recvfrom(AF_INET6, InetAddress.getByName("::1")); in test_byteBufferPositions_sendto_recvfrom_af_inet6()
703 checkSendToSocketAddress(AF_INET6, InetAddress.getByName("::1")); in test_sendtoSocketAddress_af_inet6()
707 FileDescriptor fd = Os.socket(AF_INET6, SOCK_STREAM, 0); in test_socketFamilies()
712 fd = Os.socket(AF_INET6, SOCK_STREAM, 0); in test_socketFamilies()
769 FileDescriptor fd = Os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_ICMPV6); in test_socketPing()
1085 FileDescriptor fd = Os.socket(AF_INET6, SOCK_STREAM, 0); in test_socket_sockoptTimeval_readWrite()
1109 FileDescriptor fd = Os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in test_socket_setSockoptTimeval_effective()
1147 FileDescriptor invalidFd = Os.socket(AF_INET6, SOCK_STREAM, 0); in test_socket_setSockoptTimeval_badFd()
[all …]
/libcore/luni/src/main/java/libcore/io/
DBlockGuardOs.java118 return (domain == AF_INET) || (domain == AF_INET6); in isInetDomain()
/libcore/luni/src/main/java/android/system/
DOsConstants.java118 public static final int AF_INET6 = placeholder(); field in OsConstants