Home
last modified time | relevance | path

Searched refs:ipv4 (Results 1 – 2 of 2) sorted by relevance

/libcore/luni/src/main/java/android/system/
DIcmpHeaders.java51 public static byte[] createIcmpEchoHdr(boolean ipv4, int seq) { in createIcmpEchoHdr() argument
53 bytes[0] = ipv4 ? (byte) ICMP_ECHO : (byte) ICMP6_ECHO_REQUEST; in createIcmpEchoHdr()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DDatagramChannelTest.java274 …private static InetAddress getNonLoopbackNetworkInterfaceAddress(boolean ipv4) throws IOException { in getNonLoopbackNetworkInterfaceAddress() argument
284 if ( (ipv4 && inetAddress instanceof Inet4Address) in getNonLoopbackNetworkInterfaceAddress()
285 || (!ipv4 && inetAddress instanceof Inet6Address)) { in getNonLoopbackNetworkInterfaceAddress()