Home
last modified time | relevance | path

Searched refs:AF_INET (Results 1 – 15 of 15) sorted by relevance

/libcore/ojluni/src/main/java/java/net/
DInet4Address.java123 holder().family = AF_INET; in Inet4Address()
128 holder().family = AF_INET; in Inet4Address()
142 holder().family = AF_INET; in Inet4Address()
DInet6AddressImpl.java40 import static android.system.OsConstants.AF_INET;
248 int domain = isIPv4 ? AF_INET : AF_INET6; in icmpEcho()
DNetworkInterface.java570 fd = Libcore.rawOs.socket(AF_INET, SOCK_DGRAM, 0); in getMTU()
613 fd = Libcore.rawOs.socket(AF_INET, SOCK_DGRAM, 0); in getFlags()
DInetAddress.java1645 return Libcore.os.inet_pton(AF_INET, address); in disallowDeprecatedFormats()
/libcore/ojluni/src/main/native/
Dnet_util.c257 if (him->sa_family == AF_INET) { in NET_SockaddrToInetAddress()
286 jint family = AF_INET; in NET_SockaddrEqualsInetAddress()
289 family = getInetAddress_family(env, iaObj) == IPv4? AF_INET : AF_INET6; in NET_SockaddrEqualsInetAddress()
315 if (family == AF_INET) { in NET_SockaddrEqualsInetAddress()
331 if (family != AF_INET) { in NET_SockaddrEqualsInetAddress()
DNet.c238 int domain = (ipv6_available() && preferIPv6) ? AF_INET6 : AF_INET; in Java_sun_nio_ch_Net_socket0()
240 int domain = AF_INET; in Java_sun_nio_ch_Net_socket0()
378 sin->sin_family = AF_INET; in Java_sun_nio_ch_Net_localPort()
413 sin->sin_family = AF_INET; in Java_sun_nio_ch_Net_localInetAddress()
Dnet_util.h39 #define IPv4 AF_INET
DDatagramChannelImpl.c120 him4->sin_family = AF_INET; in Java_sun_nio_ch_DatagramChannelImpl_disconnect0()
/libcore/luni/src/main/native/
DNetworkUtilities.cpp42 sin.sin_family = AF_INET; in sockaddrToInetAddress()
53 if (ss.ss_family == AF_INET) { in sockaddrToInetAddress()
118 if (ss.ss_family != AF_INET && ss.ss_family != AF_INET6) { in inetAddressToSockaddr()
Dlibcore_io_Linux.cpp377 if (ss.ss_family == AF_INET || ss.ss_family == AF_INET6) { in makeSocketAddress()
1275 if (ai->ai_family == AF_INET || ai->ai_family == AF_INET6) { in Linux_android_getaddrinfo()
1294 if (ai->ai_family != AF_INET && ai->ai_family != AF_INET6) { in Linux_android_getaddrinfo()
1408 ss.ss_family = AF_INET; // This is only for the IPv4-only IP_MULTICAST_IF. in Linux_getsockoptInAddr()
1560 case AF_INET: in Linux_getifaddrs()
2040 if (ss.ss_family == AF_INET || ss.ss_family == AF_INET6) { in Linux_recvfromBytes()
Dandroid_system_OsConstants.cpp66 initConstant(env, c, "AF_INET", AF_INET); in OsConstants_initConstants()
/libcore/luni/src/test/java/libcore/java/net/
DNetworkInterfaceTest.java41 import static android.system.OsConstants.AF_INET;
282 FileDescriptor fd = Libcore.rawOs.socket(AF_INET, SOCK_DGRAM, 0); in getFlags()
/libcore/luni/src/test/java/libcore/libcore/io/
DOsTest.java342 checkByteBufferPositions_sendto_recvfrom(AF_INET, InetAddress.getByName("127.0.0.1")); in test_byteBufferPositions_sendto_recvfrom_af_inet()
368 checkSendToSocketAddress(AF_INET, InetAddress.getByName("127.0.0.1")); in test_sendtoSocketAddress_af_inet()
386 fd = Libcore.os.socket(AF_INET, SOCK_STREAM, 0); in test_socketFamilies()
442 fd = Libcore.os.socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP); in test_socketPing()
454 FileDescriptor mUdpSock = Libcore.os.socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in test_Ipv4Fallback()
481 final FileDescriptor serverFd = Libcore.os.socket(AF_INET, SOCK_DGRAM, 0); in test_recvfrom_concurrentShutdown()
710 final FileDescriptor fd = Libcore.os.socket(AF_INET, SOCK_STREAM, 0); in test_socket_tcpUserTimeout_setAndGet()
726 final FileDescriptor fd = Libcore.os.socket(AF_INET, SOCK_DGRAM, 0); in test_socket_tcpUserTimeout_doesNotWorkOnDatagramSocket()
/libcore/luni/src/main/java/libcore/io/
DBlockGuardOs.java108 return (domain == AF_INET) || (domain == AF_INET6); in isInetDomain()
/libcore/luni/src/main/java/android/system/
DOsConstants.java110 public static final int AF_INET = placeholder(); field in OsConstants