aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-07-10 16:29:00 +0000
committerEric Andersen <andersen@codepoet.org>2001-07-10 16:29:00 +0000
commit5c58d283bbd71db2a43379fc2b804f6c138cf35e (patch)
tree6dd8028a88bf560831a117cba5f59709237055e9 /include
parent91b84603d3c3f3911bee87c8ad02c06cb8fc95ae (diff)
downloadbusybox-5c58d283bbd71db2a43379fc2b804f6c138cf35e.tar.gz
A traceroute applet from vodz. This could probably be slimmed down,
but will do for now...
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h22
2 files changed, 25 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index e6ee3c95e..12a28d5be 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -386,6 +386,9 @@
#ifdef BB_TR
APPLET(tr, tr_main, _BB_DIR_USR_BIN)
#endif
+#ifdef BB_TRACEROUTE
+ APPLET(traceroute, traceroute_main, _BB_DIR_USR_BIN)
+#endif
#ifdef BB_TRUE_FALSE
APPLET(true, true_main, _BB_DIR_BIN)
#endif
diff --git a/include/usage.h b/include/usage.h
index a19f0fe22..70dafd81c 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1593,6 +1593,28 @@
"$ echo "gdkkn vnqkc" | tr [a-y] [b-z]\n" \
"hello world\n"
+#define traceroute_trivial_usage \
+ "[-dnrv] [-m max_ttl] [-p port#] [-q nqueries]\n\
+ [-s src_addr] [-t tos] [-w wait] host [data size]"
+#define traceroute_full_usage \
+ "trace the route ip packets follow going to \"host\"\n" \
+ "Options:\n" \
+ "\t-d\tset SO_DEBUG options to socket\n" \
+ "\t-n\tPrint hop addresses numerically rather than symbolically\n" \
+ "\t-r\tBypass the normal routing tables and send directly to a host\n" \
+ "\t-v\tVerbose output\n" \
+ "\t-m max_ttl\tSet the max time-to-live (max number of hops)\n" \
+ "\t-p port#\tSet the base UDP port number used in probes\n" \
+ "\t\t(default is 33434)\n" \
+ "\t-q nqueries\tSet the number of probes per ``ttl'' to nqueries\n" \
+ "\t\t(default is 3)\n" \
+ "\t-s src_addr\tUse the following IP address as the source address\n" \
+ "\t-t tos\tSet the type-of-service in probe packets to the following value\n" \
+ "\t\t(default 0)\n" \
+ "\t-w wait\tSet the time (in seconds) to wait for a response to a probe\n" \
+ "\t\t(default 3 sec.)."
+
+
#define true_trivial_usage \
""
#define true_full_usage \