From de35167714d089e78372e642b5ab28d91b42bac5 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 21 Oct 2013 14:19:40 +0100 Subject: [ping] Add top-level ping() function to ping a host Signed-off-by: Michael Brown --- src/include/usr/pingmgmt.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/include/usr/pingmgmt.h (limited to 'src/include') diff --git a/src/include/usr/pingmgmt.h b/src/include/usr/pingmgmt.h new file mode 100644 index 000000000..4a2efc3bd --- /dev/null +++ b/src/include/usr/pingmgmt.h @@ -0,0 +1,16 @@ +#ifndef _USR_PINGMGMT_H +#define _USR_PINGMGMT_H + +/** @file + * + * ICMP ping management + * + */ + +FILE_LICENCE ( GPL2_OR_LATER ); + +#include + +extern int ping ( const char *hostname, unsigned long timeout_ms, size_t len ); + +#endif /* _USR_PINGMGMT_H */ -- cgit v1.2.3-55-g7522