From 87a52e0485d3281ebea6bf4b725aa8023690e96f Mon Sep 17 00:00:00 2001 From: rsc Date: Mon, 26 Dec 2005 04:48:52 +0000 Subject: new goodies --- src/cmd/ip/dhcpd/testping.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 src/cmd/ip/dhcpd/testping.c (limited to 'src/cmd/ip/dhcpd/testping.c') diff --git a/src/cmd/ip/dhcpd/testping.c b/src/cmd/ip/dhcpd/testping.c new file mode 100755 index 00000000..b5ca90c5 --- /dev/null +++ b/src/cmd/ip/dhcpd/testping.c @@ -0,0 +1,22 @@ +#include +#include +#include +#include +#include +#include "dat.h" + +char *blog = "ipboot"; + +void +main(int argc, char **argv) +{ + fmtinstall('E', eipconv); + fmtinstall('I', eipconv); + + if(argc < 2) + exits(0); + if(icmpecho(argv[1])) + fprint(2, "%s live\n", argv[1]); + else + fprint(2, "%s doesn't answer\n", argv[1]); +} -- cgit v1.2.3