diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-05-18 18:46:30 +0200 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-05-18 18:46:30 +0200 |
| commit | d92bbaef8386e77c00ecdeab9fc722fa4b9106b0 (patch) | |
| tree | d088503ba895da98cbf8558fa1b95951984ed59b /plugins-root/check_icmp.d | |
| parent | b5de682309589ddb230e04beaaa54d74f2fe70d5 (diff) | |
| download | monitoring-plugins-d92bbaef8386e77c00ecdeab9fc722fa4b9106b0.tar.gz | |
Some more fixes
Diffstat (limited to 'plugins-root/check_icmp.d')
| -rw-r--r-- | plugins-root/check_icmp.d/check_icmp_helpers.c | 2 | ||||
| -rw-r--r-- | plugins-root/check_icmp.d/check_icmp_helpers.h | 4 | ||||
| -rw-r--r-- | plugins-root/check_icmp.d/config.h | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/plugins-root/check_icmp.d/check_icmp_helpers.c b/plugins-root/check_icmp.d/check_icmp_helpers.c index 47604952..7a936cc9 100644 --- a/plugins-root/check_icmp.d/check_icmp_helpers.c +++ b/plugins-root/check_icmp.d/check_icmp_helpers.c | |||
| @@ -43,7 +43,7 @@ check_icmp_config check_icmp_config_init() { | |||
| 43 | .need_v4 = false, | 43 | .need_v4 = false, |
| 44 | .need_v6 = false, | 44 | .need_v6 = false, |
| 45 | 45 | ||
| 46 | .sender_id = {}, | 46 | .sender_id = 0, |
| 47 | 47 | ||
| 48 | .mode = MODE_RTA, | 48 | .mode = MODE_RTA, |
| 49 | 49 | ||
diff --git a/plugins-root/check_icmp.d/check_icmp_helpers.h b/plugins-root/check_icmp.d/check_icmp_helpers.h index 713dd8ce..1b9372ce 100644 --- a/plugins-root/check_icmp.d/check_icmp_helpers.h +++ b/plugins-root/check_icmp.d/check_icmp_helpers.h | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | #include <netinet/icmp6.h> | 9 | #include <netinet/icmp6.h> |
| 10 | #include <arpa/inet.h> | 10 | #include <arpa/inet.h> |
| 11 | 11 | ||
| 12 | typedef struct rta_host { | 12 | typedef struct ping_target { |
| 13 | unsigned short id; /* id in **table, and icmp pkts */ | 13 | unsigned short id; /* id in **table, and icmp pkts */ |
| 14 | char *msg; /* icmp error message, if any */ | 14 | char *msg; /* icmp error message, if any */ |
| 15 | 15 | ||
| @@ -32,7 +32,7 @@ typedef struct rta_host { | |||
| 32 | 32 | ||
| 33 | bool found_out_of_order_packets; | 33 | bool found_out_of_order_packets; |
| 34 | 34 | ||
| 35 | struct rta_host *next; | 35 | struct ping_target *next; |
| 36 | } ping_target; | 36 | } ping_target; |
| 37 | 37 | ||
| 38 | ping_target ping_target_init(); | 38 | ping_target ping_target_init(); |
diff --git a/plugins-root/check_icmp.d/config.h b/plugins-root/check_icmp.d/config.h index 8e9c96b2..97be7fc1 100644 --- a/plugins-root/check_icmp.d/config.h +++ b/plugins-root/check_icmp.d/config.h | |||
| @@ -60,8 +60,8 @@ typedef struct { | |||
| 60 | unsigned long ttl; | 60 | unsigned long ttl; |
| 61 | unsigned short icmp_data_size; | 61 | unsigned short icmp_data_size; |
| 62 | unsigned short icmp_pkt_size; | 62 | unsigned short icmp_pkt_size; |
| 63 | unsigned int pkt_interval; | 63 | time_t pkt_interval; |
| 64 | unsigned int target_interval; | 64 | time_t target_interval; |
| 65 | unsigned short number_of_packets; | 65 | unsigned short number_of_packets; |
| 66 | 66 | ||
| 67 | char *source_ip; | 67 | char *source_ip; |
