/libcore/ojluni/src/main/java/java/net/ |
D | Inet4Address.java | 113 holder().family = AF_INET; in Inet4Address() 118 holder().family = AF_INET; in Inet4Address() 131 holder().family = AF_INET; in Inet4Address()
|
D | InetAddress.java | 915 return Libcore.os.inet_pton(AF_INET, address); in disallowDeprecatedFormats()
|
/libcore/ojluni/src/main/native/ |
D | Inet4AddressImpl.c | 219 him.sin_family = AF_INET; in Inet4AddressImpl_isReachable0() 234 inf.sin_family = AF_INET; in Inet4AddressImpl_isReachable0() 243 fd = JVM_Socket(AF_INET, SOCK_RAW, IPPROTO_ICMP); in Inet4AddressImpl_isReachable0() 255 fd = JVM_Socket(AF_INET, SOCK_STREAM, 0); in Inet4AddressImpl_isReachable0()
|
D | net_util.c | 190 jint family = AF_INET; in NET_SockaddrEqualsInetAddress() 193 family = getInetAddress_family(env, iaObj) == IPv4? AF_INET : AF_INET6; in NET_SockaddrEqualsInetAddress() 219 if (family == AF_INET) { in NET_SockaddrEqualsInetAddress() 236 if (family != AF_INET) { in NET_SockaddrEqualsInetAddress()
|
D | NetworkInterface.c | 255 int family = (getInetAddress_family(env, iaObj) == IPv4) ? AF_INET : AF_INET6; in NetworkInterface_getByInetAddress0() 275 if (family == AF_INET) { in NetworkInterface_getByInetAddress0() 558 if (addrP->family == AF_INET) { in createNetworkInterface() 678 int sock = openSocket(env, AF_INET); in enumInterfaces() 693 case AF_INET: in enumInterfaces() 782 case AF_INET: in addif() 814 if (ifa->ifa_netmask->sa_family == AF_INET) { in addif() 998 if ((sock = JVM_Socket(AF_INET, SOCK_DGRAM, 0)) < 0) { in openSocketWithFallback()
|
D | Net.c | 158 int domain = (ipv6_available() && preferIPv6) ? AF_INET6 : AF_INET; in Java_sun_nio_ch_Net_socket0() 160 int domain = AF_INET; in Java_sun_nio_ch_Net_socket0() 285 sin->sin_family = AF_INET; in Java_sun_nio_ch_Net_localPort() 320 sin->sin_family = AF_INET; in Java_sun_nio_ch_Net_localInetAddress()
|
D | InheritedChannel.c | 52 return (family == AF_INET); in matchFamily()
|
D | net_util.h | 39 #define IPv4 AF_INET
|
D | PlainDatagramSocketImpl.c | 573 family = getInetAddress_family(env, iaObj) == IPv4? AF_INET : AF_INET6; in PlainDatagramSocketImpl_peek() 575 family = AF_INET; in PlainDatagramSocketImpl_peek() 577 if (family == AF_INET) { /* this api can't handle IPV6 addresses */ in PlainDatagramSocketImpl_peek() 969 int domain = ipv6_available() ? AF_INET6 : AF_INET; in PlainDatagramSocketImpl_datagramSocketCreate() 971 int domain = AF_INET; in PlainDatagramSocketImpl_datagramSocketCreate() 1887 family = getInetAddress_family(env, iaObj) == IPv4? AF_INET : AF_INET6; in mcast_join_leave() 1888 if (family == AF_INET) { /* will convert to IPv4-mapped address */ in mcast_join_leave()
|
D | DatagramChannelImpl.c | 110 him4->sin_family = AF_INET; in Java_sun_nio_ch_DatagramChannelImpl_disconnect0()
|
D | Inet6AddressImpl.c | 105 him4.sin_family = AF_INET; in Inet6AddressImpl_getHostByAddr0()
|
D | PlainSocketImpl.c | 148 int domain = ipv6_available() ? AF_INET6 : AF_INET; in PlainSocketImpl_socketCreate() 150 int domain = AF_INET; in PlainSocketImpl_socketCreate()
|
D | net_util_md.c | 834 him4->sin_family = AF_INET; in NET_InetAddressToSockaddr() 1284 if (him->sa_family == AF_INET) { in NET_Bind()
|
/libcore/luni/src/main/native/ |
D | NetworkUtilities.cpp | 42 sin.sin_family = AF_INET; in sockaddrToInetAddress() 53 if (ss.ss_family == AF_INET) { in sockaddrToInetAddress() 112 if (ss.ss_family != AF_INET && ss.ss_family != AF_INET6) { in inetAddressToSockaddr()
|
D | libcore_io_Posix.cpp | 363 if (ss.ss_family == AF_INET || ss.ss_family == AF_INET6) { in makeSocketAddress() 980 if (ai->ai_family == AF_INET || ai->ai_family == AF_INET6) { in Posix_android_getaddrinfo() 999 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) { in Posix_android_getaddrinfo() 1097 ss.ss_family = AF_INET; // This is only for the IPv4-only IP_MULTICAST_IF. in Posix_getsockoptInAddr()
|
D | android_system_OsConstants.cpp | 60 initConstant(env, c, "AF_INET", AF_INET); in OsConstants_initConstants()
|
/libcore/luni/src/test/java/libcore/io/ |
D | OsTest.java | 325 checkByteBufferPositions_sendto_recvfrom(AF_INET, InetAddress.getByName("127.0.0.1")); in test_byteBufferPositions_sendto_recvfrom_af_inet() 351 checkSendToSocketAddress(AF_INET, InetAddress.getByName("127.0.0.1")); in test_sendtoSocketAddress_af_inet() 369 fd = Libcore.os.socket(AF_INET, SOCK_STREAM, 0); in test_socketFamilies() 425 fd = Libcore.os.socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP); in test_socketPing() 437 FileDescriptor mUdpSock = Libcore.os.socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in test_Ipv4Fallback() 464 final FileDescriptor serverFd = Libcore.os.socket(AF_INET, SOCK_DGRAM, 0); in test_recvfrom_concurrentShutdown()
|
/libcore/luni/src/main/java/android/system/ |
D | OsConstants.java | 96 public static final int AF_INET = placeholder(); field in OsConstants
|