summaryrefslogtreecommitdiffstats
path: root/src/include/usr
diff options
context:
space:
mode:
authorMichael Brown2013-10-21 15:19:40 +0200
committerMichael Brown2013-10-21 16:08:18 +0200
commitde35167714d089e78372e642b5ab28d91b42bac5 (patch)
treecd76d275fa0f82983793c5843d04651bc57cf26a /src/include/usr
parent[ping] Add generic ping mechanism (diff)
downloadipxe-de35167714d089e78372e642b5ab28d91b42bac5.tar.gz
ipxe-de35167714d089e78372e642b5ab28d91b42bac5.tar.xz
ipxe-de35167714d089e78372e642b5ab28d91b42bac5.zip
[ping] Add top-level ping() function to ping a host
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/usr')
-rw-r--r--src/include/usr/pingmgmt.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/usr/pingmgmt.h b/src/include/usr/pingmgmt.h
new file mode 100644
index 00000000..4a2efc3b
--- /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 <stdint.h>
+
+extern int ping ( const char *hostname, unsigned long timeout_ms, size_t len );
+
+#endif /* _USR_PINGMGMT_H */