summaryrefslogtreecommitdiffstats
path: root/plugins/t
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/t')
0 files changed, 0 insertions, 0 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index 3fff341..6dfb6b6 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -47,29 +47,29 @@ enum {
47 DEFAULT_MAX_PACKETS = 5 /* default no. of ICMP ECHO packets */ 47 DEFAULT_MAX_PACKETS = 5 /* default no. of ICMP ECHO packets */
48}; 48};
49 49
50int process_arguments(int, char **); 50static int process_arguments(int, char **);
51int get_threshold(char *, float *, int *); 51static int get_threshold(char *, float *, int *);
52int validate_arguments(void); 52static int validate_arguments(void);
53int run_ping(const char *cmd, const char *addr); 53static int run_ping(const char *cmd, const char *addr);
54int error_scan(char buf[MAX_INPUT_BUFFER], const char *addr); 54static int error_scan(char buf[MAX_INPUT_BUFFER], const char *addr);
55static void print_help(void);
55void print_usage(void); 56void print_usage(void);
56void print_help(void); 57
57 58static bool display_html = false;
58bool display_html = false; 59static int wpl = UNKNOWN_PACKET_LOSS;
59int wpl = UNKNOWN_PACKET_LOSS; 60static int cpl = UNKNOWN_PACKET_LOSS;
60int cpl = UNKNOWN_PACKET_LOSS; 61static float wrta = UNKNOWN_TRIP_TIME;
61float wrta = UNKNOWN_TRIP_TIME; 62static float crta = UNKNOWN_TRIP_TIME;
62float crta = UNKNOWN_TRIP_TIME; 63static char **addresses = NULL;
63char **addresses = NULL; 64static int n_addresses = 0;
64int n_addresses = 0; 65static int max_addr = 1;
65int max_addr = 1; 66static int max_packets = -1;
66int max_packets = -1; 67static int verbose = 0;
67int verbose = 0; 68
68 69static float rta = UNKNOWN_TRIP_TIME;
69float rta = UNKNOWN_TRIP_TIME; 70static int pl = UNKNOWN_PACKET_LOSS;
70int pl = UNKNOWN_PACKET_LOSS; 71
71 72static char *warn_text;
72char *warn_text;
73 73
74int main(int argc, char **argv) { 74int main(int argc, char **argv) {
75 char *cmd = NULL; 75 char *cmd = NULL;