Searched refs:ipv4 (Results 1 – 2 of 2) sorted by relevance
51 public static byte[] createIcmpEchoHdr(boolean ipv4, int seq) { in createIcmpEchoHdr() argument53 bytes[0] = ipv4 ? (byte) ICMP_ECHO : (byte) ICMP6_ECHO_REQUEST; in createIcmpEchoHdr()
274 …private static InetAddress getNonLoopbackNetworkInterfaceAddress(boolean ipv4) throws IOException { in getNonLoopbackNetworkInterfaceAddress() argument284 if ( (ipv4 && inetAddress instanceof Inet4Address) in getNonLoopbackNetworkInterfaceAddress()285 || (!ipv4 && inetAddress instanceof Inet6Address)) { in getNonLoopbackNetworkInterfaceAddress()