/libcore/ojluni/src/main/native/ |
D | net_util_md.c | 108 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 …]
|
D | Net.c | 157 #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 …]
|
D | net_util.c | 209 #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()
|
D | DatagramChannelImpl.c | 108 #ifdef AF_INET6 in Java_sun_nio_ch_DatagramChannelImpl_disconnect0() 112 him6->sin6_family = AF_INET6; in Java_sun_nio_ch_DatagramChannelImpl_disconnect0()
|
D | net_util_md.h | 140 #ifdef AF_INET6
|
D | net_util.h | 40 #define IPv6 AF_INET6
|
/libcore/luni/src/main/native/ |
D | NetworkUtilities.cpp | 37 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()
|
D | libcore_io_Linux.cpp | 108 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()
|
D | android_system_OsConstants.cpp | 68 initConstant(env, c, "AF_INET6", AF_INET6); in OsConstants_initConstants()
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
D | BlockGuardOsTest.java | 19 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/ |
D | Inet6Address.java | 401 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()
|
D | Inet6AddressImpl.java | 42 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()
|
D | PlainDatagramSocketImpl.java | 37 import static android.system.OsConstants.AF_INET6; 198 fd = IoBridge.socket(AF_INET6, SOCK_DGRAM, 0); in datagramSocketCreate()
|
D | PlainSocketImpl.java | 42 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/ |
D | OsTest.java | 508 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/ |
D | BlockGuardOs.java | 118 return (domain == AF_INET) || (domain == AF_INET6); in isInetDomain()
|
/libcore/luni/src/main/java/android/system/ |
D | OsConstants.java | 118 public static final int AF_INET6 = placeholder(); field in OsConstants
|