NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/48176: ping(8) shows bogus time with small packetsize
>Number: 48176
>Category: bin
>Synopsis: ping(8) shows bogus time with small packetsize
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Sep 03 13:15:00 +0000 2013
>Originator: Izumi Tsutsui
>Release: NetBSD 6.1
>Organization:
>Environment:
System: NetBSD 6.1 (GENERIC)
Architecture: i386
Machine: i386
>Description:
ping(8) with -s 8 through 15 (and maybe <20) shows bogus time.
>How-To-Repeat:
% ping -c 1 -s 8 localhost
PING localhost (127.0.0.1): 0 data bytes
8 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=-544499729298.913 ms
----localhost PING Statistics----
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = -544499729298.913/-544499729298.913/0.000/0.000
ms
% ping -c 1 -s 15 localhost
PING localhost (127.0.0.1): 3 data bytes
15 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=-7566047373982433280000.000 ms
----localhost PING Statistics----
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev =
-7566047373982433280000.000/-7566047373982433280000.000/0.000/0.000 ms
% ping -c 1 -s 16 localhost
PING localhost (127.0.0.1): 4 data bytes
16 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=232.439 ms
----localhost PING Statistics----
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 232.439/232.439/232.439/0.000 ms
% ping -c 1 -s 20 localtime
PING localhost (127.0.0.1): 8 data bytes
20 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.029 ms
----localhost PING Statistics----
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.029/0.029/0.029/0.000 ms
>Fix:
Don't print timestamps for smaller packetsize to send struct timespec?
Home |
Main Index |
Thread Index |
Old Index