Searched refs:AF_INET6 (Results 1 – 16 of 16) sorted by relevance
/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() 496 #ifdef AF_INET6 in NET_AllocSockaddr() 603 if (inet_pton(AF_INET6, dest_str, &dest_addr) < 0) { 759 #ifdef AF_INET6 in NET_InetAddressToSockaddr() 789 him6->sin6_family = AF_INET6; in NET_InetAddressToSockaddr() 831 #ifdef AF_INET6 832 if (him->sa_family == AF_INET6) { [all …]
|
D | Net.c | 151 #ifdef AF_INET6 160 sin6->sin6_family = AF_INET6; in initGroupSourceReq() 164 sin6->sin6_family = AF_INET6; in initGroupSourceReq() 237 #ifdef AF_INET6 in Java_sun_nio_ch_Net_socket0() 238 int domain = (ipv6_available() && preferIPv6) ? AF_INET6 : AF_INET; in Java_sun_nio_ch_Net_socket0() 249 #ifdef AF_INET6 in Java_sun_nio_ch_Net_socket0() 251 if (domain == AF_INET6) { in Java_sun_nio_ch_Net_socket0() 281 int level = (domain == AF_INET6) ? IPPROTO_IPV6 : IPPROTO_IP; in Java_sun_nio_ch_Net_socket0() 293 #if defined(__linux__) && defined(AF_INET6) in Java_sun_nio_ch_Net_socket0() 295 if (domain == AF_INET6 && type == SOCK_DGRAM) { in Java_sun_nio_ch_Net_socket0() [all …]
|
D | net_util.c | 208 #ifdef AF_INET6 in NET_SockaddrToInetAddress() 209 if (him->sa_family == AF_INET6) { in NET_SockaddrToInetAddress() 287 #ifdef AF_INET6 in NET_SockaddrEqualsInetAddress() 288 family = getInetAddress_family(env, iaObj) == IPv4? AF_INET : AF_INET6; in NET_SockaddrEqualsInetAddress() 289 if (him->sa_family == AF_INET6) { in NET_SockaddrEqualsInetAddress() 299 if (family == AF_INET6) { in NET_SockaddrEqualsInetAddress()
|
D | DatagramChannelImpl.c | 106 #ifdef AF_INET6 in Java_sun_nio_ch_DatagramChannelImpl_disconnect0() 110 him6->sin6_family = AF_INET6; in Java_sun_nio_ch_DatagramChannelImpl_disconnect0()
|
D | net_util_md.h | 135 #ifdef AF_INET6
|
D | net_util.h | 40 #define IPv6 AF_INET6
|
/libcore/luni/src/main/native/ |
D | NetworkUtilities.cpp | 35 if (ss.ss_family == AF_INET6 && IN6_IS_ADDR_V4MAPPED(&sin6.sin6_addr)) { in sockaddrToInetAddress() 58 } else if (ss.ss_family == AF_INET6) { in sockaddrToInetAddress() 118 if (ss.ss_family != AF_INET && ss.ss_family != AF_INET6) { in inetAddressToSockaddr() 147 if (ss.ss_family == AF_INET6) { in inetAddressToSockaddr() 169 sin6.sin6_family = AF_INET6; in inetAddressToSockaddr()
|
D | libcore_io_Linux.cpp | 93 return sa != NULL && sa->sa_family == AF_INET6 && in isIPv4MappedAddress() 369 if (ss.ss_family == AF_INET || ss.ss_family == AF_INET6) { in makeSocketAddress() 1267 if (ai->ai_family == AF_INET || ai->ai_family == AF_INET6) { in Linux_android_getaddrinfo() 1286 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) { in Linux_android_getaddrinfo() 1553 case AF_INET6: in Linux_getifaddrs() 2033 if (ss.ss_family == AF_INET || ss.ss_family == AF_INET6) { in Linux_recvfromBytes()
|
D | android_system_OsConstants.cpp | 67 initConstant(env, c, "AF_INET6", AF_INET6); in OsConstants_initConstants()
|
/libcore/ojluni/src/main/java/java/net/ |
D | Inet6Address.java | 384 holder.init(null, AF_INET6); in Inet6Address() 392 holder.init(hostName, AF_INET6); in Inet6Address() 504 family = AF_INET6; in initif() 647 if (holder().getFamily() != AF_INET6) { in readObject()
|
D | Inet6AddressImpl.java | 41 import static android.system.OsConstants.AF_INET6; 198 fd = IoBridge.socket(AF_INET6, SOCK_STREAM, 0); in tcpEcho() 224 int domain = isIPv4 ? AF_INET : AF_INET6; in icmpEcho()
|
D | PlainDatagramSocketImpl.java | 37 import static android.system.OsConstants.AF_INET6; 196 fd = IoBridge.socket(AF_INET6, SOCK_DGRAM, 0); in datagramSocketCreate()
|
D | PlainSocketImpl.java | 42 import static android.system.OsConstants.AF_INET6; 116 fd.setInt$(IoBridge.socket(AF_INET6, isStream ? SOCK_STREAM : SOCK_DGRAM, 0).getInt$()); in socketCreate()
|
/libcore/luni/src/test/java/libcore/io/ |
D | OsTest.java | 337 checkByteBufferPositions_sendto_recvfrom(AF_INET6, InetAddress.getByName("::1")); in test_byteBufferPositions_sendto_recvfrom_af_inet6() 363 checkSendToSocketAddress(AF_INET6, InetAddress.getByName("::1")); in test_sendtoSocketAddress_af_inet6() 367 FileDescriptor fd = Libcore.os.socket(AF_INET6, SOCK_STREAM, 0); in test_socketFamilies() 372 fd = Libcore.os.socket(AF_INET6, SOCK_STREAM, 0); in test_socketFamilies() 428 FileDescriptor fd = Libcore.os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_ICMPV6); in test_socketPing()
|
/libcore/luni/src/main/java/libcore/io/ |
D | BlockGuardOs.java | 116 return (domain == AF_INET) || (domain == AF_INET6); in isInetDomain()
|
/libcore/luni/src/main/java/android/system/ |
D | OsConstants.java | 111 public static final int AF_INET6 = placeholder(); field in OsConstants
|