diff options
Diffstat (limited to 'plugins/check_fping.d')
-rw-r--r-- | plugins/check_fping.d/config.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/plugins/check_fping.d/config.h b/plugins/check_fping.d/config.h index a0697bf3..d95e9ded 100644 --- a/plugins/check_fping.d/config.h +++ b/plugins/check_fping.d/config.h | |||
@@ -29,6 +29,21 @@ 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 | |||
40 | // only available with fping version >= 5.3 | ||
41 | // Setting icmp_timestamp tells fping to use ICMP Timestamp (ICMP type 13) instead | ||
42 | // of ICMP Echo | ||
43 | bool icmp_timestamp; | ||
44 | |||
45 | // Setting check_source lets fping discard replies which are not from the target address | ||
46 | bool check_source; | ||
32 | } check_fping_config; | 47 | } check_fping_config; |
33 | 48 | ||
34 | check_fping_config check_fping_config_init() { | 49 | check_fping_config check_fping_config_init() { |
@@ -53,6 +68,15 @@ check_fping_config check_fping_config_init() { | |||
53 | .cpl_p = false, | 68 | .cpl_p = false, |
54 | .wpl = 0, | 69 | .wpl = 0, |
55 | .wpl_p = false, | 70 | .wpl_p = false, |
71 | |||
72 | // only available with fping version >= 5.2 | ||
73 | .fwmark = 0, | ||
74 | .fwmark_set = false, // just to be deterministic | ||
75 | |||
76 | // only available with fping version >= 5.3 | ||
77 | .icmp_timestamp = false, | ||
78 | .check_source = false, | ||
79 | |||
56 | }; | 80 | }; |
57 | return tmp; | 81 | return tmp; |
58 | } | 82 | } |