summaryrefslogtreecommitdiffstats
path: root/plugins/check_fping.d/config.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2026-01-09 14:57:57 +0100
committerGitHub <noreply@github.com>2026-01-09 14:57:57 +0100
commitda4fb28fca51b180d50608b0c847b1c0927cd8c5 (patch)
treed20769e0a61ac2ba76920190050d3e0a3e7c85b7 /plugins/check_fping.d/config.h
parentb09a8b530df8a23610889d0b89b148f22db3568a (diff)
parentf694f4cd4dfead0da6feab04d92335d9bbe185b6 (diff)
downloadmonitoring-plugins-da4fb28fca51b180d50608b0c847b1c0927cd8c5.tar.gz
Merge branch 'master' into refactor/check_ide_smart
Diffstat (limited to 'plugins/check_fping.d/config.h')
-rw-r--r--plugins/check_fping.d/config.h23
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
34check_fping_config check_fping_config_init() { 48check_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}