diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-05-04 01:42:52 +0200 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-05-04 01:42:52 +0200 |
commit | 5a6adcb7db497fba7b89471a6d58dba80330ff4a (patch) | |
tree | 8db791660766ac2532105e894b1c73eee56a15aa /plugins-root/check_icmp.d/check_icmp_helpers.h | |
parent | eafee9c3f91879afa82749fa1d8cd2b0b53a5d5c (diff) | |
download | monitoring-plugins-5a6adcb7db497fba7b89471a6d58dba80330ff4a.tar.gz |
WIP - check_icmp refactor 2
Diffstat (limited to 'plugins-root/check_icmp.d/check_icmp_helpers.h')
-rw-r--r-- | plugins-root/check_icmp.d/check_icmp_helpers.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins-root/check_icmp.d/check_icmp_helpers.h b/plugins-root/check_icmp.d/check_icmp_helpers.h index 49f720ec..7e8a4d9f 100644 --- a/plugins-root/check_icmp.d/check_icmp_helpers.h +++ b/plugins-root/check_icmp.d/check_icmp_helpers.h | |||
@@ -15,7 +15,7 @@ typedef struct rta_host { | |||
15 | char *msg; /* icmp error message, if any */ | 15 | char *msg; /* icmp error message, if any */ |
16 | struct sockaddr_storage saddr_in; /* the address of this host */ | 16 | struct sockaddr_storage saddr_in; /* the address of this host */ |
17 | struct sockaddr_storage error_addr; /* stores address of error replies */ | 17 | struct sockaddr_storage error_addr; /* stores address of error replies */ |
18 | unsigned long long time_waited; /* total time waited, in usecs */ | 18 | time_t time_waited; /* total time waited, in usecs */ |
19 | unsigned int icmp_sent, icmp_recv, icmp_lost; /* counters */ | 19 | unsigned int icmp_sent, icmp_recv, icmp_lost; /* counters */ |
20 | unsigned char icmp_type, icmp_code; /* type and code from errors */ | 20 | unsigned char icmp_type, icmp_code; /* type and code from errors */ |
21 | unsigned short flags; /* control/status flags */ | 21 | unsigned short flags; /* control/status flags */ |
@@ -32,7 +32,7 @@ typedef struct rta_host { | |||
32 | double mos; /* Mean opinion score */ | 32 | double mos; /* Mean opinion score */ |
33 | double score; /* score */ | 33 | double score; /* score */ |
34 | 34 | ||
35 | unsigned int last_tdiff; | 35 | time_t last_tdiff; |
36 | unsigned int last_icmp_seq; /* Last ICMP_SEQ to check out of order pkts */ | 36 | unsigned int last_icmp_seq; /* Last ICMP_SEQ to check out of order pkts */ |
37 | unsigned char pl; /* measured packet loss */ | 37 | unsigned char pl; /* measured packet loss */ |
38 | 38 | ||
@@ -71,3 +71,6 @@ typedef struct { | |||
71 | } rta_host_create_wrapper; | 71 | } rta_host_create_wrapper; |
72 | 72 | ||
73 | rta_host_create_wrapper rta_host_create(char *name, struct sockaddr_storage *address); | 73 | rta_host_create_wrapper rta_host_create(char *name, struct sockaddr_storage *address); |
74 | unsigned int ping_target_list_append(ping_target *list, ping_target *elem); | ||
75 | |||
76 | void check_icmp_timeout_handler(int, siginfo_t *, void *); | ||