|
|
@@ -1,20 +1,49 @@
|
|
|
-/*
|
|
|
- * $Id$
|
|
|
- *
|
|
|
- * Author: Andreas Ericsson <ae@op5.se>
|
|
|
- *
|
|
|
- * License: GNU GPL 2.0 or any later version.
|
|
|
- *
|
|
|
- * Relevant RFC's: 792 (ICMP), 791 (IP)
|
|
|
- *
|
|
|
- * This program was modeled somewhat after the check_icmp program,
|
|
|
- * which was in turn a hack of fping (www.fping.org) but has been
|
|
|
- * completely rewritten since to generate higher precision rta values,
|
|
|
- * and support several different modes as well as setting ttl to control.
|
|
|
- * redundant routes. The only remainders of fping is currently a few
|
|
|
- * function names.
|
|
|
- *
|
|
|
- */
|
|
|
+ /******************************************************************************
|
|
|
+*
|
|
|
+* Nagios check_icmp plugin
|
|
|
+*
|
|
|
+* License: GPL
|
|
|
+* Copyright (c) 2005-2006 nagios-plugins team
|
|
|
+*
|
|
|
+* Original Author : Andreas Ericsson <ae@op5.se>
|
|
|
+*
|
|
|
+* Last Modified: $Date$
|
|
|
+*
|
|
|
+* Description:
|
|
|
+*
|
|
|
+* This file contains the check_icmp plugin
|
|
|
+*
|
|
|
+* Relevant RFC's: 792 (ICMP), 791 (IP)
|
|
|
+*
|
|
|
+* This program was modeled somewhat after the check_icmp program,
|
|
|
+* which was in turn a hack of fping (www.fping.org) but has been
|
|
|
+* completely rewritten since to generate higher precision rta values,
|
|
|
+* and support several different modes as well as setting ttl to control.
|
|
|
+* redundant routes. The only remainders of fping is currently a few
|
|
|
+* function names.
|
|
|
+*
|
|
|
+* License Information:
|
|
|
+*
|
|
|
+* This program is free software; you can redistribute it and/or modify
|
|
|
+* it under the terms of the GNU General Public License as published by
|
|
|
+* the Free Software Foundation; either version 2 of the License, or
|
|
|
+* (at your option) any later version.
|
|
|
+*
|
|
|
+* This program is distributed in the hope that it will be useful,
|
|
|
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
+* GNU General Public License for more details.
|
|
|
+*
|
|
|
+* You should have received a copy of the GNU General Public License
|
|
|
+* along with this program; if not, write to the Free Software
|
|
|
+* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
+*
|
|
|
+* $Id$
|
|
|
+*
|
|
|
+*****************************************************************************/
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
#include <sys/time.h>
|
|
|
#include <sys/types.h>
|