mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-02-20 00:10:09 -05:00
Remove options if fping version is too low and die directly
This commit is contained in:
parent
19f409ac55
commit
a669b2531d
1 changed files with 5 additions and 1 deletions
|
|
@ -315,11 +315,15 @@ check_fping_config_wrapper process_arguments(int argc, char **argv) {
|
|||
{"use-ipv6", no_argument, 0, '6'},
|
||||
{"dontfrag", no_argument, 0, 'M'},
|
||||
{"random", no_argument, 0, 'R'},
|
||||
// only available with fping version >= 5.3
|
||||
#ifdef FPING_VERSION_5_2_OR_HIGHER
|
||||
// only available with fping version >= 5.2
|
||||
{"fwmark", required_argument, NULL, FWMARK_OPT},
|
||||
# ifdef FPING_VERSION_5_3_OR_HIGHER
|
||||
// only available with fping version >= 5.3
|
||||
{"icmp-timestamp", no_argument, NULL, ICMP_TIMESTAMP_OPT},
|
||||
{"check-source", no_argument, NULL, CHECK_SOURCE_OPT},
|
||||
# endif
|
||||
#endif
|
||||
{0, 0, 0, 0}};
|
||||
|
||||
char *rv[2];
|
||||
|
|
|
|||
Loading…
Reference in a new issue