summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins-root/check_icmp.c63
1 files changed, 46 insertions, 17 deletions
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c
index 2f03552f..2b1cc2cd 100644
--- a/plugins-root/check_icmp.c
+++ b/plugins-root/check_icmp.c
@@ -1,20 +1,49 @@
1/* 1 /******************************************************************************
2 * $Id$ 2*
3 * 3* Nagios check_icmp plugin
4 * Author: Andreas Ericsson <ae@op5.se> 4*
5 * 5* License: GPL
6 * License: GNU GPL 2.0 or any later version. 6* Copyright (c) 2005-2006 nagios-plugins team
7 * 7*
8 * Relevant RFC's: 792 (ICMP), 791 (IP) 8* Original Author : Andreas Ericsson <ae@op5.se>
9 * 9*
10 * This program was modeled somewhat after the check_icmp program, 10* Last Modified: $Date$
11 * which was in turn a hack of fping (www.fping.org) but has been 11*
12 * completely rewritten since to generate higher precision rta values, 12* Description:
13 * and support several different modes as well as setting ttl to control. 13*
14 * redundant routes. The only remainders of fping is currently a few 14* This file contains the check_icmp plugin
15 * function names. 15*
16 * 16* Relevant RFC's: 792 (ICMP), 791 (IP)
17 */ 17*
18* This program was modeled somewhat after the check_icmp program,
19* which was in turn a hack of fping (www.fping.org) but has been
20* completely rewritten since to generate higher precision rta values,
21* and support several different modes as well as setting ttl to control.
22* redundant routes. The only remainders of fping is currently a few
23* function names.
24*
25* License Information:
26*
27* This program is free software; you can redistribute it and/or modify
28* it under the terms of the GNU General Public License as published by
29* the Free Software Foundation; either version 2 of the License, or
30* (at your option) any later version.
31*
32* This program is distributed in the hope that it will be useful,
33* but WITHOUT ANY WARRANTY; without even the implied warranty of
34* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35* GNU General Public License for more details.
36*
37* You should have received a copy of the GNU General Public License
38* along with this program; if not, write to the Free Software
39* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
40*
41* $Id$
42*
43*****************************************************************************/
44
45
46
18 47
19#include <sys/time.h> 48#include <sys/time.h>
20#include <sys/types.h> 49#include <sys/types.h>