Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 May 2023 20:48:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 271736] ping has different SIGINFO behaviour in -4 and -6 modes
Message-ID:  <bug-271736-227-NcVP6j5zNA@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-271736-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-271736-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271736

--- 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=3D40+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=3D0 hlim=3D118 time=3D26.4=
48 ms
16 bytes from 2607:f8b0:400b:804::2004, icmp_seq=3D1 hlim=3D118 time=3D20.1=
13 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 =3D 20.113/23.281/26.448/3.167 ms
16 bytes from 2607:f8b0:400b:804::2004, icmp_seq=3D2 hlim=3D118 time=3D22.4=
74 ms
16 bytes from 2607:f8b0:400b:804::2004, icmp_seq=3D3 hlim=3D118 time=3D21.7=
90 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=3D0 ttl=3D118 time=3D19.940 ms
64 bytes from 142.251.41.68: icmp_seq=3D1 ttl=3D118 time=3D19.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=3D2 ttl=3D118 time=3D25.735 ms
64 bytes from 142.251.41.68: icmp_seq=3D3 ttl=3D118 time=3D15.108 ms

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271736-227-NcVP6j5zNA>