diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-15 16:16:14 +0200 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-15 16:16:14 +0200 |
commit | ff7305bdfe2f682857ba888c70aec2fc7cee798e (patch) | |
tree | b5b3bdcf41d42d525906b6e8d82cdf143e74ec5d /plugins-root/check_icmp.d | |
parent | f07f96c3cfaeb30f95eb1898d6cc58b200e70831 (diff) | |
parent | 601a48a63e745817cf2a4c7f3ca526e393dd3fb8 (diff) | |
download | monitoring-plugins-ff7305bdfe2f682857ba888c70aec2fc7cee798e.tar.gz |
Merge branch 'master' into refactor/check_apt
Diffstat (limited to 'plugins-root/check_icmp.d')
-rw-r--r-- | plugins-root/check_icmp.d/check_icmp_helpers.c | 4 | ||||
-rw-r--r-- | plugins-root/check_icmp.d/config.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins-root/check_icmp.d/check_icmp_helpers.c b/plugins-root/check_icmp.d/check_icmp_helpers.c index d56fbd8b..1b96a392 100644 --- a/plugins-root/check_icmp.d/check_icmp_helpers.c +++ b/plugins-root/check_icmp.d/check_icmp_helpers.c | |||
@@ -76,7 +76,7 @@ check_icmp_state check_icmp_state_init() { | |||
76 | 76 | ||
77 | ping_target_create_wrapper ping_target_create(struct sockaddr_storage address) { | 77 | ping_target_create_wrapper ping_target_create(struct sockaddr_storage address) { |
78 | ping_target_create_wrapper result = { | 78 | ping_target_create_wrapper result = { |
79 | .errorcode = OK, | 79 | .errorcode = 0, |
80 | }; | 80 | }; |
81 | 81 | ||
82 | struct sockaddr_storage *tmp_addr = &address; | 82 | struct sockaddr_storage *tmp_addr = &address; |
@@ -88,7 +88,7 @@ ping_target_create_wrapper ping_target_create(struct sockaddr_storage address) { | |||
88 | ((struct sockaddr_in *)tmp_addr)->sin_addr.s_addr == INADDR_ANY))) || | 88 | ((struct sockaddr_in *)tmp_addr)->sin_addr.s_addr == INADDR_ANY))) || |
89 | (tmp_addr->ss_family == AF_INET6 && | 89 | (tmp_addr->ss_family == AF_INET6 && |
90 | (((struct sockaddr_in6 *)tmp_addr)->sin6_addr.s6_addr == in6addr_any.s6_addr))) { | 90 | (((struct sockaddr_in6 *)tmp_addr)->sin6_addr.s6_addr == in6addr_any.s6_addr))) { |
91 | result.errorcode = ERROR; | 91 | result.errorcode = 1; |
92 | return result; | 92 | return result; |
93 | } | 93 | } |
94 | 94 | ||
diff --git a/plugins-root/check_icmp.d/config.h b/plugins-root/check_icmp.d/config.h index c348bef5..be388d0a 100644 --- a/plugins-root/check_icmp.d/config.h +++ b/plugins-root/check_icmp.d/config.h | |||
@@ -97,7 +97,7 @@ typedef struct icmp_ping_data { | |||
97 | 97 | ||
98 | /* 80 msec packet interval by default */ | 98 | /* 80 msec packet interval by default */ |
99 | // DEPRECATED, remove when removing the option | 99 | // DEPRECATED, remove when removing the option |
100 | #define DEFAULT_PKT_INTERVAL 80000 | 100 | #define DEFAULT_PKT_INTERVAL 80000 |
101 | 101 | ||
102 | #define DEFAULT_TARGET_INTERVAL 0 | 102 | #define DEFAULT_TARGET_INTERVAL 0 |
103 | 103 | ||