Allow TTL to be explicitly set on ICMP packets from icmp prober (#919)
authorfhltang <francis.tang@gmail.com>
Wed, 15 Jun 2022 17:27:05 +0000 (18:27 +0100)
committerGitHub <noreply@github.com>
Wed, 15 Jun 2022 17:27:05 +0000 (11:27 -0600)
commit99adc3db9a43223568607f563cb7a449ff5da852
tree3d3ff2daef1313fb0f509441c1b438042b62af11
parentf0d1414f1fa6fd0b0c4052e4dfae9b9e721060bd
Allow TTL to be explicitly set on ICMP packets from icmp prober (#919)

This adds an option to the config file to specify the TTL value. If 0 or not specified, in some cases it defaults to 64 and in other cases it defaults to whatever is configured in the operating system. This matches previous behavior.

Signed-off-by: Francis Tang <francis.tang@gmail.com>
CONFIGURATION.md
blackbox.yml
config/config.go
config/config_test.go
config/testdata/invalid-icmp-ttl-overflow.yml [new file with mode: 0644]
config/testdata/invalid-icmp-ttl.yml [new file with mode: 0644]
prober/icmp.go