Home
last modified time | relevance | path

Searched refs:AF_INET6 (Results 1 – 20 of 20) 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.c153 #ifdef AF_INET6
162 sin6->sin6_family = AF_INET6; in initGroupSourceReq()
166 sin6->sin6_family = AF_INET6; in initGroupSourceReq()
239 #ifdef AF_INET6 in Java_sun_nio_ch_Net_socket0()
240 int domain = (ipv6_available() && preferIPv6) ? AF_INET6 : AF_INET; in Java_sun_nio_ch_Net_socket0()
251 #ifdef AF_INET6 in Java_sun_nio_ch_Net_socket0()
253 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 …]
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.h136 #ifdef AF_INET6
Dnet_util.h40 #define IPv6 AF_INET6
/libcore/luni/src/test/java/libcore/libcore/io/
DBlockGuardOsTest.java19 import static android.system.OsConstants.AF_INET6;
156 FileDescriptor udpSocket = Libcore.os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in test_nonblock()
170 FileDescriptor udpSocket = Libcore.os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in test_unixSocket()
199 FileDescriptor udpSocket = Libcore.os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in test_connect_networkPolicy()
209 FileDescriptor tcpSocket = Libcore.os.socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP); in test_connect_networkPolicy()
/libcore/luni/src/main/native/
DNetworkUtilities.cpp41 if (sa->sa_family == AF_INET6) { in sockaddrToInetAddress()
66 } else if (sa->sa_family == AF_INET6) { in sockaddrToInetAddress()
132 if (ss.ss_family != AF_INET && ss.ss_family != AF_INET6) { in inetAddressToSockaddr()
161 if (ss.ss_family == AF_INET6) { in inetAddressToSockaddr()
185 sin6.sin6_family = AF_INET6; in inetAddressToSockaddr()
Dlibcore_io_Linux.cpp112 return sa != NULL && sa->sa_family == AF_INET6 && in isIPv4MappedAddress()
398 if (ss.ss_family == AF_INET || ss.ss_family == AF_INET6) { in makeSocketAddress()
1398 if (ai->ai_family == AF_INET || ai->ai_family == AF_INET6) { in Linux_android_getaddrinfo()
1417 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) { in Linux_android_getaddrinfo()
1685 case AF_INET6: in Linux_getifaddrs()
1775 } else if (family == AF_INET6) { in Linux_inet_pton()
2185 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/ojluni/src/main/java/java/net/
DInet6Address.java409 holder.init(null, AF_INET6); in Inet6Address()
417 holder.init(hostName, AF_INET6); in Inet6Address()
534 family = AF_INET6; in initif()
677 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.java549 return Os.socket(AF_INET6, SOCK_DGRAM, 0); in makeIpv6Socket()
589 for (int family : new int[] { AF_INET, AF_INET6, AF_NETLINK }) { in testUnknownSocketAddressSubclass()
807 checkByteBufferPositions_sendto_recvfrom(AF_INET6, InetAddress.getByName("::1"));
836 checkSendToSocketAddress(AF_INET6, InetAddress.getByName("::1"));
975 checkSendmsgSocketAddress(AF_INET6, loopbackAddr, sendmsgHdr, recvmsgHdr, 4096);
1001 checkSendmsgSocketAddress(AF_INET6, loopbackAddr, sendmsgHdr, recvmsgHdr, 4096);
1132 FileDescriptor fd = Os.socket(AF_INET6, SOCK_STREAM, 0);
1137 fd = Os.socket(AF_INET6, SOCK_STREAM, 0);
1190 FileDescriptor fd = Os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_ICMPV6);
1492 final FileDescriptor fd = Os.socket(AF_INET6, SOCK_DGRAM, 0);
[all …]
/libcore/luni/annotations/flagged_api/android/system/
DOsConstants.annotated.java60 public static final int AF_INET6; field in OsConstants
61 static { AF_INET6 = 0; }
/libcore/luni/src/test/java/libcore/java/net/
DSocketTest.java20 import static android.system.OsConstants.AF_INET6;
732 FileDescriptor v6sock = Os.socket(AF_INET6, SOCK_DGRAM, 0);
/libcore/luni/src/main/java/libcore/io/
DBlockGuardOs.java137 return (domain == AF_INET) || (domain == AF_INET6); in isInetDomain()
/libcore/luni/src/main/java/android/system/
DOsConstants.java130 public static final int AF_INET6 = placeholder(); field in OsConstants
/libcore/api/
Dcurrent.txt163 field public static final int AF_INET6;