| Summary: | ping has different SIGINFO behaviour in -4 and -6 modes | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Ed Maste <emaste> |
| Component: | misc | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | New --- | ||
| Severity: | Affects Only Me | CC: | asomers, jlduran |
| Priority: | --- | ||
| Version: | CURRENT | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Ed Maste
2023-05-30 20:45:23 UTC
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 annotating ping -4 with ^T: $ 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 [^T pressed here] 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 I think it was fixed in https://cgit.freebsd.org/src/commit/?id=03d4d1c778091a08277d070185a9c60c7a6d57e0 |