Home
last modified time | relevance | path

Searched refs:AF_INET (Results 1 – 16 of 16) 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.java41 import static android.system.OsConstants.AF_INET;
247 int domain = isIPv4 ? AF_INET : AF_INET6; in icmpEcho()
DNetworkInterface.java610 fd = Libcore.rawOs.socket(AF_INET, SOCK_DGRAM, 0); in getMTU()
653 fd = Libcore.rawOs.socket(AF_INET, SOCK_DGRAM, 0); in getFlags()
/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.c244 int domain = (ipv6_available() && preferIPv6) ? AF_INET6 : AF_INET; in Java_sun_nio_ch_Net_socket0()
246 int domain = AF_INET; in Java_sun_nio_ch_Net_socket0()
390 sin->sin_family = AF_INET; in Java_sun_nio_ch_Net_localPort()
431 sin->sin_family = AF_INET; in Java_sun_nio_ch_Net_localInetAddress()
Dnet_util.h39 #define IPv4 AF_INET
DDatagramChannelImpl.c122 him4->sin_family = AF_INET; in Java_sun_nio_ch_DatagramChannelImpl_disconnect0()
Dnet_util_md.c820 him4->sin_family = AF_INET; in NET_InetAddressToSockaddr()
1269 if (him->sa_family == AF_INET) { in NET_Bind()
/libcore/luni/src/main/native/
DNetworkUtilities.cpp44 sin.sin_family = AF_INET; in sockaddrToInetAddress()
55 if (ss.ss_family == AF_INET) { in sockaddrToInetAddress()
120 if (ss.ss_family != AF_INET && ss.ss_family != AF_INET6) { in inetAddressToSockaddr()
Dlibcore_io_Linux.cpp398 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()
1475 ss.ss_family = AF_INET; // This is only for the IPv4-only IP_MULTICAST_IF. in Linux_getsockoptInAddr()
1634 case AF_INET: in Linux_getifaddrs()
1718 if (family == AF_INET) { in Linux_inet_pton()
2134 if (ss.ss_family == AF_INET || ss.ss_family == AF_INET6) { in Linux_recvfromBytes()
Dandroid_system_OsConstants.cpp67 initConstant(env, c, "AF_INET", AF_INET); in OsConstants_initConstants()
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java91 final FileDescriptor fd = Os.socket(AF_INET, SOCK_DGRAM, 0); in testFcntlInt_udpSocket()
108 final FileDescriptor fd = Os.socket(AF_INET, SOCK_DGRAM, 0); in testFcntlInt_invalidCmd()
504 return Os.socket(AF_INET, SOCK_DGRAM, 0); in makeIpv4Socket()
546 for (int family : new int[] { AF_INET, AF_INET6, AF_NETLINK }) { in testUnknownSocketAddressSubclass()
673 checkByteBufferPositions_sendto_recvfrom(AF_INET, InetAddress.getByName("127.0.0.1")); in test_byteBufferPositions_sendto_recvfrom_af_inet()
699 checkSendToSocketAddress(AF_INET, InetAddress.getByName("127.0.0.1")); in test_sendtoSocketAddress_af_inet()
717 fd = Os.socket(AF_INET, SOCK_STREAM, 0); in test_socketFamilies()
774 fd = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP); in test_socketPing()
786 FileDescriptor mUdpSock = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in test_Ipv4Fallback()
813 final FileDescriptor serverFd = Os.socket(AF_INET, SOCK_DGRAM, 0); in test_recvfrom_concurrentShutdown()
[all …]
/libcore/luni/src/main/java/libcore/net/
DInetAddressUtils.java25 import static android.system.OsConstants.AF_INET;
/libcore/luni/src/test/java/libcore/java/net/
DNetworkInterfaceTest.java43 import static android.system.OsConstants.AF_INET;
275 FileDescriptor fd = Libcore.rawOs.socket(AF_INET, SOCK_DGRAM, 0); in getFlags()
/libcore/luni/src/main/java/libcore/io/
DBlockGuardOs.java118 return (domain == AF_INET) || (domain == AF_INET6); in isInetDomain()
/libcore/luni/src/main/java/android/system/
DOsConstants.java117 public static final int AF_INET = placeholder(); field in OsConstants