diff options
| author | Michael Brown | 2013-11-01 03:22:12 +0100 |
|---|---|---|
| committer | Michael Brown | 2013-11-01 03:26:19 +0100 |
| commit | 5e1fa5cd4090f229a40903f13abf328e86271717 (patch) | |
| tree | 77a6302aeeb86f6c86fe95fb757a952a4ef7490e /src/include/usr/pingmgmt.h | |
| parent | [ipv6] Add ndp_tx_router_solicitation() to send router solicitations (diff) | |
| download | ipxe-5e1fa5cd4090f229a40903f13abf328e86271717.tar.gz ipxe-5e1fa5cd4090f229a40903f13abf328e86271717.tar.xz ipxe-5e1fa5cd4090f229a40903f13abf328e86271717.zip | |
[parseopt] Add parse_timeout()
Parsing a timeout value (specified in milliseconds) into an internal
timeout value measured in timer ticks is a common operation. Provide
a parse_timeout() value to carry out this conversion automatically.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/usr/pingmgmt.h')
| -rw-r--r-- | src/include/usr/pingmgmt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/usr/pingmgmt.h b/src/include/usr/pingmgmt.h index 4a2efc3bd..45ad5d394 100644 --- a/src/include/usr/pingmgmt.h +++ b/src/include/usr/pingmgmt.h @@ -11,6 +11,6 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include <stdint.h> -extern int ping ( const char *hostname, unsigned long timeout_ms, size_t len ); +extern int ping ( const char *hostname, unsigned long timeout, size_t len ); #endif /* _USR_PINGMGMT_H */ |
