Changeset View
Changeset View
Standalone View
Standalone View
sbin/ping/tests/ping_c3.out
- This file was added.
PING localhost: 56 data bytes | |||||
64 bytes from: icmp_seq=0 ttl=64 time= ms | |||||
asomers: Are you planning to filter out the ttl value? | |||||
jansucanAuthorUnsubmitted Done Inline ActionsYes. The value is dependent on net.inet.ip.ttl sysctl. At first I was thinking about using value of sysctl -n net.inet.ip.ttl in the regular expression but it probably opens possibilities for errors (e.g., privileges for executing sysctl command). jansucan: Yes. The value is dependent on net.inet.ip.ttl sysctl. At first I was thinking about using… | |||||
asomersUnsubmitted Not Done Inline ActionsInstead of relying on the default or filtering it out, why not specify it on the command line? In addition to being more robust against environmental changes, that will provide better test coverage. You could also specify -s, and -h for the ping6 test. asomers: Instead of relying on the default or filtering it out, why not specify it on the command line? | |||||
jansucanAuthorUnsubmitted Done Inline ActionsI tried to set TTL but it didn't affect the output. I realized that it's only for outgoing packets. Incoming packets have TTL set by the target system. I will use -s option. jansucan: I tried to set TTL but it didn't affect the output. I realized that it's only for outgoing… | |||||
64 bytes from: icmp_seq=1 ttl=64 time= ms | |||||
64 bytes from: icmp_seq=2 ttl=64 time= ms | |||||
--- localhost ping statistics --- | |||||
3 packets transmitted, 3 packets received, 0.0% packet loss | |||||
round-trip min/avg/max/stddev = /// ms |
Are you planning to filter out the ttl value?