diff options
Diffstat (limited to 'plugins/check_fping.d')
| -rw-r--r-- | plugins/check_fping.d/config.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/check_fping.d/config.h b/plugins/check_fping.d/config.h index a0697bf3..d3e50565 100644 --- a/plugins/check_fping.d/config.h +++ b/plugins/check_fping.d/config.h | |||
| @@ -29,6 +29,20 @@ typedef struct { | |||
| 29 | bool cpl_p; | 29 | bool cpl_p; |
| 30 | int wpl; | 30 | int wpl; |
| 31 | bool wpl_p; | 31 | bool wpl_p; |
| 32 | |||
| 33 | // only available with fping version >= 5.2 | ||
| 34 | // for a given uint _fwmark_ fping sets _fwmark_ as a firewall mark | ||
| 35 | // in the packets | ||
| 36 | unsigned int fwmark; | ||
| 37 | bool fwmark_set; | ||
| 38 | |||
| 39 | // only available with fping version >= 5.3 | ||
| 40 | // Setting icmp_timestamp tells fping to use ICMP Timestamp (ICMP type 13) instead | ||
| 41 | // of ICMP Echo | ||
| 42 | bool icmp_timestamp; | ||
| 43 | |||
| 44 | // Setting check_source lets fping discard replies which are not from the target address | ||
| 45 | bool check_source; | ||
| 32 | } check_fping_config; | 46 | } check_fping_config; |
| 33 | 47 | ||
| 34 | check_fping_config check_fping_config_init() { | 48 | check_fping_config check_fping_config_init() { |
| @@ -53,6 +67,15 @@ check_fping_config check_fping_config_init() { | |||
| 53 | .cpl_p = false, | 67 | .cpl_p = false, |
| 54 | .wpl = 0, | 68 | .wpl = 0, |
| 55 | .wpl_p = false, | 69 | .wpl_p = false, |
| 70 | |||
| 71 | // only available with fping version >= 5.2 | ||
| 72 | .fwmark = 0, | ||
| 73 | .fwmark_set = false, // just to be deterministic | ||
| 74 | |||
| 75 | // only available with fping version >= 5.3 | ||
| 76 | .icmp_timestamp = false, | ||
| 77 | .check_source = false, | ||
| 78 | |||
| 56 | }; | 79 | }; |
| 57 | return tmp; | 80 | return tmp; |
| 58 | } | 81 | } |
