Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/net/
DInet4Address.java113 holder().family = AF_INET; in Inet4Address()
118 holder().family = AF_INET; in Inet4Address()
131 holder().family = AF_INET; in Inet4Address()
DInetAddress.java915 return Libcore.os.inet_pton(AF_INET, address); in disallowDeprecatedFormats()
/libcore/ojluni/src/main/native/
DInet4AddressImpl.c219 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()
Dnet_util.c190 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()
DNetworkInterface.c255 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()
DNet.c158 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()
DInheritedChannel.c52 return (family == AF_INET); in matchFamily()
Dnet_util.h39 #define IPv4 AF_INET
DPlainDatagramSocketImpl.c573 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()
DDatagramChannelImpl.c110 him4->sin_family = AF_INET; in Java_sun_nio_ch_DatagramChannelImpl_disconnect0()
DInet6AddressImpl.c105 him4.sin_family = AF_INET; in Inet6AddressImpl_getHostByAddr0()
DPlainSocketImpl.c148 int domain = ipv6_available() ? AF_INET6 : AF_INET; in PlainSocketImpl_socketCreate()
150 int domain = AF_INET; in PlainSocketImpl_socketCreate()
Dnet_util_md.c834 him4->sin_family = AF_INET; in NET_InetAddressToSockaddr()
1284 if (him->sa_family == AF_INET) { in NET_Bind()
/libcore/luni/src/main/native/
DNetworkUtilities.cpp42 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()
Dlibcore_io_Posix.cpp363 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()
Dandroid_system_OsConstants.cpp60 initConstant(env, c, "AF_INET", AF_INET); in OsConstants_initConstants()
/libcore/luni/src/test/java/libcore/io/
DOsTest.java325 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/
DOsConstants.java96 public static final int AF_INET = placeholder(); field in OsConstants