RFR: JDK-8280498: [aix]: jdk/java/net/Inet4Address/PingThis.java fails
Michael Felt
duke at openjdk.java.net
Fri Jan 28 15:55:11 UTC 2022
On Mon, 10 Jan 2022 15:56:07 GMT, Michael Felt <duke at openjdk.java.net> wrote:
> with IP "0.0.0.0"
>
> - it either does nothing and ping fails, or, in some virtual environments
> is treated as the default route address.
> - IPv6 support for ::1 is available since 1977; however, ::0 is not accepted
> as a vaild psuedo IPv6 address. '::1' must be used instead.
>
> ping: bind: The socket name is not available on this system.
> ping: bind: The socket name is not available on this system.
> PING ::1: (::1): 56 data bytes
> 64 bytes from ::1: icmp_seq=0 ttl=255 time=0.037 ms
> 64 bytes from ::1: icmp_seq=1 ttl=255 time=0.045 ms
>
> --- ::1 ping statistics ---
> 2 packets transmitted, 2 packets received, 0% packet loss
> round-trip min/avg/max = 0/0/0 ms
> PING ::1: (::1): 56 data bytes
> 64 bytes from ::1: icmp_seq=0 ttl=255 time=0.052 ms
> 64 bytes from ::1: icmp_seq=1 ttl=255 time=0.047 ms
>
> --- ::1 ping statistics ---
> 2 packets transmitted, 2 packets received, 0% packet loss
>
>
> A long commit message.
>
> This came to light because some systems failed with IPv4 (those that passed
> replaced 0.0.0.0 with the default router. but most just fail - not substituting
> 0.0.0.0 with 127.0.0.1. However, InetAddress.getByName("") returns 127.0.0.1
> which compares well with other platform's behavior.
p.s. Just want to be clear: On AIX
- ping 0.0.0.0 is permissible, but responds differently
- ping ::0 is not supported
aixtools at x064:[/home/aixtools]ping 0.0.0.0
PING 0.0.0.0: (0.0.0.0): 56 data bytes
--- 0.0.0.0 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
aixtools at x064:[/home/aixtools]ping ::0
ping: bind: The socket name is not available on this system.
aixtools at x064:[/home/aixtools]ping ::1
PING ::1: (::1): 56 data bytes
64 bytes from ::1: icmp_seq=0 ttl=255 time=0.053 ms
64 bytes from ::1: icmp_seq=1 ttl=255 time=0.095 ms
--- ::1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
and
aixtools at gcc119:[/home/aixtools]ping 0.0.0.0
PING 0.0.0.0: (0.0.0.0): 56 data bytes
64 bytes from XXX.211.9.1: icmp_seq=0 ttl=255 time=0 ms
64 bytes from XXX.211.9.1: icmp_seq=1 ttl=255 time=0 ms
64 bytes from XXX.211.9.1: icmp_seq=2 ttl=255 time=0 ms
--- 0.0.0.0 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms
aixtools at gcc119:[/home/aixtools]ping ::0
ping: bind: The socket name is not available on this system.
aixtools at gcc119:[/home/aixtools]ping ::1
PING ::1: (::1): 56 data bytes
64 bytes from ::1: icmp_seq=0 ttl=255 time=0.045 ms
64 bytes from ::1: icmp_seq=1 ttl=255 time=0.080 ms
--- ::1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms
_(Modified the responding IP address in the ping above)_
-------------
PR: https://git.openjdk.java.net/jdk/pull/7013
More information about the net-dev
mailing list