[Bug 271736] ping has different SIGINFO behaviour in -4 and -6 modes

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 30 May 2023 20:48:18 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271736

--- Comment #1 from Ed Maste <emaste@freebsd.org> ---
On SIGINFO ping -6 shows the same summary as is printed when the program
terminates

$ ping -6 www.google.com
PING6(56=40+8+8 bytes) 2607:fea8:1d9c:4a00:ba9a:2aff:fe70:b250 -->
2607:f8b0:400b:804::2004
16 bytes from 2607:f8b0:400b:804::2004, icmp_seq=0 hlim=118 time=26.448 ms
16 bytes from 2607:f8b0:400b:804::2004, icmp_seq=1 hlim=118 time=20.113 ms
[^T pressed here]
load: 1.69  cmd: ping 61842 [select] 1.81r 0.01u 0.00s 0% 2460k

--- www.google.com ping6 statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 20.113/23.281/26.448/3.167 ms
16 bytes from 2607:f8b0:400b:804::2004, icmp_seq=2 hlim=118 time=22.474 ms
16 bytes from 2607:f8b0:400b:804::2004, icmp_seq=3 hlim=118 time=21.790 ms
...

while ping -4 shows a different summary:

$ ping -4 www.google.com
PING www.google.com (142.251.41.68): 56 data bytes
64 bytes from 142.251.41.68: icmp_seq=0 ttl=118 time=19.940 ms
64 bytes from 142.251.41.68: icmp_seq=1 ttl=118 time=19.890 ms
load: 1.85  cmd: ping 61928 [select] 1.44r 0.00u 0.00s 0% 2496k
2/2 packets received (100.0%) 19.890 min / 19.915 avg / 19.940 max
64 bytes from 142.251.41.68: icmp_seq=2 ttl=118 time=25.735 ms
64 bytes from 142.251.41.68: icmp_seq=3 ttl=118 time=15.108 ms

-- 
You are receiving this mail because:
You are the assignee for the bug.