christos%zoulas.com@localhost (Christos Zoulas) writes: > ping -s 1 localhost > > linux: > PING localhost (127.0.0.1) 1(29) bytes of data. > 9 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 so linux sends n bytes more than the header. > macosx > PING localhost (127.0.0.1): 1 data bytes > 9 bytes from 127.0.0.1: icmp_seq=0 ttl=64 as does macosx > netbsd-current > PING localhost (127.0.0.1): 1 data bytes > 8 bytes from 127.0.0.1: icmp_seq=0 ttl=255 The man page says: -s packetsize Specifies the number of data bytes to be sent. The default is 56, which translates into 64 ICMP data bytes when combined with the 8 bytes of ICMP header data. The maximum allowed value is 65467 bytes. so clearly -s 0 should lead to 8-byte packets, and -s 56 to 64-byte packets. Then we would match the man page, NetBSD 5_STABLE, Linux and mac.
Description: PGP signature