diff options
| author | Michael Brown | 2013-10-21 15:19:40 +0200 |
|---|---|---|
| committer | Michael Brown | 2013-10-21 16:08:18 +0200 |
| commit | de35167714d089e78372e642b5ab28d91b42bac5 (patch) | |
| tree | cd76d275fa0f82983793c5843d04651bc57cf26a /src/include | |
| parent | [ping] Add generic ping mechanism (diff) | |
| download | ipxe-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')
| -rw-r--r-- | src/include/usr/pingmgmt.h | 16 |
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 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 <stdint.h> + +extern int ping ( const char *hostname, unsigned long timeout_ms, size_t len ); + +#endif /* _USR_PINGMGMT_H */ |
