aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-01-09 10:06:01 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-01-09 10:06:01 +0000
commit9e598413750c0decba90222f29104f31b39e5837 (patch)
treeb6eeae83f81b7feb203eb5ce33a8e9c51941e9ca /include
parentdd3461af2f227efae7a69a67e5b8dc1f665b57b9 (diff)
downloadbusybox-9e598413750c0decba90222f29104f31b39e5837.tar.gz
arping applet by Nick Fedchik
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h17
2 files changed, 20 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 177e82352..9e95b2e9d 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -58,6 +58,9 @@
#ifdef CONFIG_AR
APPLET(ar, ar_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
#endif
+#ifdef CONFIG_ARPING
+ APPLET(arping, arping_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
+#endif
#ifdef CONFIG_ASH
APPLET_NOUSAGE("ash", ash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
#endif
diff --git a/include/usage.h b/include/usage.h
index dfcc89626..da4fad886 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -38,6 +38,23 @@
"\t-x\t\textract\n" \
"\t-v\t\tverbosely list files processed\n"
+#define arping_trivial_usage \
+ "[-fqbDUA] [-c count] [-w timeout] [-I device] [-s sender] target\n"
+#define arping_full_usage \
+ "Ping hosts by ARP requests/replies.\n\n" \
+ "Options:\n" \
+ "\t-f\t\tQuit on first ARP reply\n" \
+ "\t-q\t\tBe quiet\n" \
+ "\t-b\t\tKeep broadcasting, don't go unicast\n" \
+ "\t-D\t\tDuplicated address detection mode\n" \
+ "\t-U\t\tUnsolicited ARP mode, update your neighbours\n" \
+ "\t-A\t\tARP answer mode, update your neighbours\n" \
+ "\t-c count\tStop after sending count ARP request packets\n" \
+ "\t-w timeout\tTime to wait for ARP reply, in seconds\n" \
+ "\t-I device\tOutgoing interface name, default is eth0\n" \
+ "\t-s sender\tSet specific sender IP address\n" \
+ "\ttarget\t\tTarget IP address of ARP request\n"
+
#define awk_trivial_usage \
"[-v var=val][-F sep] { -f progname | 'programtext' } [FILE ...]"
#define awk_full_usage \