summaryrefslogtreecommitdiffstats
path: root/plugins-root/check_icmp.d/check_icmp_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins-root/check_icmp.d/check_icmp_helpers.h')
-rw-r--r--plugins-root/check_icmp.d/check_icmp_helpers.h7
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
73rta_host_create_wrapper rta_host_create(char *name, struct sockaddr_storage *address); 73rta_host_create_wrapper rta_host_create(char *name, struct sockaddr_storage *address);
74unsigned int ping_target_list_append(ping_target *list, ping_target *elem);
75
76void check_icmp_timeout_handler(int, siginfo_t *, void *);