david/ipxe
Archived
1
0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/include/usr
Michael Brown 1c34ca70d1 [ping] Allow termination after a specified number of packets
Add the "-c <count>" option to the "ping" command, allowing for
automatic termination after a specified number of packets.

When a number of packets is specified:

  - if a serious error (i.e. length mismatch or content mismatch)
    occurs, then the ping will be immediately terminated with the relevant
    status code;

  - if at least one response is received successfully, and all errors
    are non-serious (i.e. timeouts or out-of-sequence responses), then
    the ping will be terminated after the final response (or timeout)
    with a success status;

  - if no responses are received successfully, then the ping will be
    terminated after the final timeout with ETIMEDOUT.

If no number of packets is specified, then the ping will continue
until manually interrupted.

Originally-implemented-by: Cedric Levasseur <cyr-ius@ipocus.net>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2014-10-23 16:39:42 +01:00
..
autoboot.h [autoboot] Allow autoboot device to be identified by link-layer address 2014-07-08 00:37:31 +01:00
dhcpmgmt.h [dhcp] Remove obsolete dhcp() function 2013-11-05 17:42:55 +00:00
fcmgmt.h [fc] Add Fibre Channel management commands 2010-09-15 03:17:30 +01:00
ifmgmt.h [ifmgmt] Add ifconf() to carry out network device configuration 2013-11-05 17:30:20 +00:00
imgmgmt.h [image] Add "--timeout" parameter to image downloading commands 2014-03-10 13:32:39 +00:00
imgtrust.h [image] Add the "imgtrust" and "imgverify" commands 2012-03-25 00:11:43 +00:00
ipstat.h [cmdline] Add the "ipstat" command 2014-03-02 23:57:47 +00:00
iwmgmt.h [iwmgmt] Add wireless management commands and text for common errors 2010-01-05 09:11:21 -05:00
lotest.h [lotest] Move lotest.h to correct directory 2010-11-18 23:30:50 +00:00
neighmgmt.h [neighbour] Add nstat() function to print out neighbour table 2013-09-25 14:36:30 +01:00
nslookup.h [cmdline] Add standalone "nslookup" command 2012-09-10 15:31:14 +01:00
pingmgmt.h [ping] Allow termination after a specified number of packets 2014-10-23 16:39:42 +01:00
profstat.h [cmdline] Add "profstat" command to display profiling statistics 2014-04-27 23:14:47 +01:00
prompt.h [parseopt] Add parse_timeout() 2013-11-01 02:26:19 +00:00
route.h [ipv4] Abstract out protocol-specific portions of "route" command 2013-09-03 16:30:18 +01:00
sync.h [cmdline] Rewrite "sync" command to use monojob_wait() 2013-11-01 17:00:16 +00:00