diff options
| author | Leonid Lisovskiy <lly.dev@gmail.com> | 2009-11-23 06:20:09 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-23 06:20:09 +0100 |
| commit | 4c06531d5e2b053b642cea6fc4e7bc91ea4cbd26 (patch) | |
| tree | d652a32a9dcc9e1acaff57bf019211068db55cdc /include | |
| parent | 0d56568654973a522bd005616b86d4dc8c833c81 (diff) | |
| download | busybox-w32-4c06531d5e2b053b642cea6fc4e7bc91ea4cbd26.tar.gz busybox-w32-4c06531d5e2b053b642cea6fc4e7bc91ea4cbd26.tar.bz2 busybox-w32-4c06531d5e2b053b642cea6fc4e7bc91ea4cbd26.zip | |
traceroute6: new applet by Leonid Lisovskiy. +1562 bytes
Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/applets.h | 1 | ||||
| -rw-r--r-- | include/usage.h | 27 |
2 files changed, 25 insertions, 3 deletions
diff --git a/include/applets.h b/include/applets.h index a2d1e95a5..d1a84eeaf 100644 --- a/include/applets.h +++ b/include/applets.h | |||
| @@ -395,6 +395,7 @@ IF_TOP(APPLET(top, _BB_DIR_USR_BIN, _BB_SUID_DROP)) | |||
| 395 | IF_TOUCH(APPLET_NOFORK(touch, touch, _BB_DIR_BIN, _BB_SUID_DROP, touch)) | 395 | IF_TOUCH(APPLET_NOFORK(touch, touch, _BB_DIR_BIN, _BB_SUID_DROP, touch)) |
| 396 | IF_TR(APPLET(tr, _BB_DIR_USR_BIN, _BB_SUID_DROP)) | 396 | IF_TR(APPLET(tr, _BB_DIR_USR_BIN, _BB_SUID_DROP)) |
| 397 | IF_TRACEROUTE(APPLET(traceroute, _BB_DIR_USR_BIN, _BB_SUID_MAYBE)) | 397 | IF_TRACEROUTE(APPLET(traceroute, _BB_DIR_USR_BIN, _BB_SUID_MAYBE)) |
| 398 | IF_TRACEROUTE6(APPLET(traceroute6, _BB_DIR_USR_BIN, _BB_SUID_MAYBE)) | ||
| 398 | IF_TRUE(APPLET_NOFORK(true, true, _BB_DIR_BIN, _BB_SUID_DROP, true)) | 399 | IF_TRUE(APPLET_NOFORK(true, true, _BB_DIR_BIN, _BB_SUID_DROP, true)) |
| 399 | IF_TTY(APPLET(tty, _BB_DIR_USR_BIN, _BB_SUID_DROP)) | 400 | IF_TTY(APPLET(tty, _BB_DIR_USR_BIN, _BB_SUID_DROP)) |
| 400 | IF_TTYSIZE(APPLET(ttysize, _BB_DIR_USR_BIN, _BB_SUID_DROP)) | 401 | IF_TTYSIZE(APPLET(ttysize, _BB_DIR_USR_BIN, _BB_SUID_DROP)) |
diff --git a/include/usage.h b/include/usage.h index 3ccf160bd..920f8e8c9 100644 --- a/include/usage.h +++ b/include/usage.h | |||
| @@ -4648,17 +4648,18 @@ | |||
| 4648 | "hello world\n" | 4648 | "hello world\n" |
| 4649 | 4649 | ||
| 4650 | #define traceroute_trivial_usage \ | 4650 | #define traceroute_trivial_usage \ |
| 4651 | "[-FIldnrv] [-f 1st_ttl] [-m max_ttl] [-p port#] [-q nqueries]\n" \ | 4651 | "[-46FIldnrv] [-f 1st_ttl] [-m max_ttl] [-p port#] [-q nqueries]\n" \ |
| 4652 | " [-s src_addr] [-t tos] [-w wait] [-g gateway] [-i iface]\n" \ | 4652 | " [-s src_addr] [-t tos] [-w wait] [-g gateway] [-i iface]\n" \ |
| 4653 | " [-z pausemsecs] HOST [data size]" | 4653 | " [-z pausemsecs] HOST [data size]" |
| 4654 | #define traceroute_full_usage "\n\n" \ | 4654 | #define traceroute_full_usage "\n\n" \ |
| 4655 | "Trace the route to HOST\n" \ | 4655 | "Trace the route to HOST\n" \ |
| 4656 | "\nOptions:" \ | 4656 | "\nOptions:" \ |
| 4657 | "\n -4, -6 Force IPv4 or IPv6 hostname resolution" \ | ||
| 4657 | "\n -F Set the don't fragment bit" \ | 4658 | "\n -F Set the don't fragment bit" \ |
| 4658 | "\n -I Use ICMP ECHO instead of UDP datagrams" \ | 4659 | "\n -I Use ICMP ECHO instead of UDP datagrams" \ |
| 4659 | "\n -l Display the ttl value of the returned packet" \ | 4660 | "\n -l Display the ttl value of the returned packet" \ |
| 4660 | "\n -d Set SO_DEBUG options to socket" \ | 4661 | "\n -d Set SO_DEBUG options to socket" \ |
| 4661 | "\n -n Print hop addresses numerically rather than symbolically" \ | 4662 | "\n -n Print numeric addresses" \ |
| 4662 | "\n -r Bypass the normal routing tables and send directly to a host" \ | 4663 | "\n -r Bypass the normal routing tables and send directly to a host" \ |
| 4663 | "\n -v Verbose" \ | 4664 | "\n -v Verbose" \ |
| 4664 | "\n -m max_ttl Max time-to-live (max number of hops)" \ | 4665 | "\n -m max_ttl Max time-to-live (max number of hops)" \ |
| @@ -4668,9 +4669,29 @@ | |||
| 4668 | "\n -s src_addr IP address to use as the source address" \ | 4669 | "\n -s src_addr IP address to use as the source address" \ |
| 4669 | "\n -t tos Type-of-service in probe packets (default 0)" \ | 4670 | "\n -t tos Type-of-service in probe packets (default 0)" \ |
| 4670 | "\n -w wait Time in seconds to wait for a response" \ | 4671 | "\n -w wait Time in seconds to wait for a response" \ |
| 4671 | "\n (default 3 sec)" \ | 4672 | "\n (default 3)" \ |
| 4672 | "\n -g Loose source route gateway (8 max)" \ | 4673 | "\n -g Loose source route gateway (8 max)" \ |
| 4673 | 4674 | ||
| 4675 | #define traceroute6_trivial_usage \ | ||
| 4676 | "[-dnrv] [-m max_ttl] [-p port#] [-q nqueries]\n" \ | ||
| 4677 | " [-s src_addr] [-t tos] [-w wait] [-i iface]\n" \ | ||
| 4678 | " HOST [data size]" | ||
| 4679 | #define traceroute6_full_usage "\n\n" \ | ||
| 4680 | "Trace the route to HOST\n" \ | ||
| 4681 | "\nOptions:" \ | ||
| 4682 | "\n -d Set SO_DEBUG options to socket" \ | ||
| 4683 | "\n -n Print numeric addresses" \ | ||
| 4684 | "\n -r Bypass the normal routing tables and send directly to a host" \ | ||
| 4685 | "\n -v Verbose" \ | ||
| 4686 | "\n -m max_ttl Max time-to-live (max number of hops)" \ | ||
| 4687 | "\n -p port# Base UDP port number used in probes" \ | ||
| 4688 | "\n (default is 33434)" \ | ||
| 4689 | "\n -q nqueries Number of probes per 'ttl' (default 3)" \ | ||
| 4690 | "\n -s src_addr IP address to use as the source address" \ | ||
| 4691 | "\n -t tos Type-of-service in probe packets (default 0)" \ | ||
| 4692 | "\n -w wait Time in seconds to wait for a response" \ | ||
| 4693 | "\n (default 3)" \ | ||
| 4694 | |||
| 4674 | #define true_trivial_usage \ | 4695 | #define true_trivial_usage \ |
| 4675 | "" | 4696 | "" |
| 4676 | #define true_full_usage "\n\n" \ | 4697 | #define true_full_usage "\n\n" \ |
