diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2015-08-24 18:56:46 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-08-24 20:00:17 +0200 |
| commit | 729b70646cc748e1e88ddaec3ed542adcf7fa3da (patch) | |
| tree | b99546ef9f0be8575df55bf40dc1e8f14cc7ab1c | |
| parent | bb2fd67d0bfe16441d4b1d2e6ece83b04955b379 (diff) | |
| download | busybox-w32-729b70646cc748e1e88ddaec3ed542adcf7fa3da.tar.gz busybox-w32-729b70646cc748e1e88ddaec3ed542adcf7fa3da.tar.bz2 busybox-w32-729b70646cc748e1e88ddaec3ed542adcf7fa3da.zip | |
traceroute: fix help text
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -rw-r--r-- | networking/traceroute.c | 66 |
1 files changed, 34 insertions, 32 deletions
diff --git a/networking/traceroute.c b/networking/traceroute.c index 12ba614e8..855713605 100644 --- a/networking/traceroute.c +++ b/networking/traceroute.c | |||
| @@ -211,60 +211,62 @@ | |||
| 211 | */ | 211 | */ |
| 212 | 212 | ||
| 213 | //usage:#define traceroute_trivial_usage | 213 | //usage:#define traceroute_trivial_usage |
| 214 | //usage: "[-"IF_TRACEROUTE6("46")"FIldnrv] [-f 1ST_TTL] [-m MAXTTL] [-p PORT] [-q PROBES]\n" | 214 | //usage: "[-"IF_TRACEROUTE6("46")"FIlnrv] [-f 1ST_TTL] [-m MAXTTL] [-q PROBES] [-p PORT]\n" |
| 215 | //usage: " [-s SRC_IP] [-t TOS] [-w WAIT_SEC] [-g GATEWAY] [-i IFACE]\n" | 215 | //usage: " [-t TOS] [-w WAIT_SEC]" |
| 216 | //usage: IF_FEATURE_TRACEROUTE_SOURCE_ROUTE(" [-g GATEWAY]")" [-s SRC_IP] [-i IFACE]\n" | ||
| 216 | //usage: " [-z PAUSE_MSEC] HOST [BYTES]" | 217 | //usage: " [-z PAUSE_MSEC] HOST [BYTES]" |
| 217 | //usage:#define traceroute_full_usage "\n\n" | 218 | //usage:#define traceroute_full_usage "\n\n" |
| 218 | //usage: "Trace the route to HOST\n" | 219 | //usage: "Trace the route to HOST\n" |
| 219 | //usage: IF_TRACEROUTE6( | 220 | //usage: IF_TRACEROUTE6( |
| 220 | //usage: "\n -4,-6 Force IP or IPv6 name resolution" | 221 | //usage: "\n -4,-6 Force IP or IPv6 name resolution" |
| 221 | //usage: ) | 222 | //usage: ) |
| 222 | //usage: "\n -F Set the don't fragment bit" | 223 | //usage: "\n -F Set don't fragment bit" |
| 224 | //usage: IF_FEATURE_TRACEROUTE_USE_ICMP( | ||
| 223 | //usage: "\n -I Use ICMP ECHO instead of UDP datagrams" | 225 | //usage: "\n -I Use ICMP ECHO instead of UDP datagrams" |
| 224 | //usage: "\n -l Display the TTL value of the returned packet" | 226 | //usage: ) |
| 225 | //usage: "\n -d Set SO_DEBUG options to socket" | 227 | //usage: "\n -l Display TTL value of the returned packet" |
| 228 | //Currently disabled (TRACEROUTE_SO_DEBUG==0) | ||
| 229 | ////usage: "\n -d Set SO_DEBUG options to socket" | ||
| 226 | //usage: "\n -n Print numeric addresses" | 230 | //usage: "\n -n Print numeric addresses" |
| 227 | //usage: "\n -r Bypass routing tables, send directly to HOST" | 231 | //usage: "\n -r Bypass routing tables, send directly to HOST" |
| 232 | //usage: IF_FEATURE_TRACEROUTE_VERBOSE( | ||
| 228 | //usage: "\n -v Verbose" | 233 | //usage: "\n -v Verbose" |
| 229 | //usage: "\n -m Max time-to-live (max number of hops)" | 234 | //usage: ) |
| 230 | //usage: "\n -p Base UDP port number used in probes" | 235 | //usage: "\n -f N First number of hops (default 1)" |
| 236 | //usage: "\n -m N Max number of hops" | ||
| 237 | //usage: "\n -q N Number of probes per hop (default 3)" | ||
| 238 | //usage: "\n -p N Base UDP port number used in probes" | ||
| 231 | //usage: "\n (default 33434)" | 239 | //usage: "\n (default 33434)" |
| 232 | //usage: "\n -q Number of probes per TTL (default 3)" | 240 | //usage: "\n -s IP Source address" |
| 233 | //usage: "\n -s IP address to use as the source address" | 241 | //usage: "\n -i IFACE Source interface" |
| 234 | //usage: "\n -t Type-of-service in probe packets (default 0)" | 242 | //usage: "\n -t N Type-of-service in probe packets (default 0)" |
| 235 | //usage: "\n -w Time in seconds to wait for a response (default 3)" | 243 | //usage: "\n -w SEC Time to wait for a response (default 3)" |
| 236 | //usage: "\n -g Loose source route gateway (8 max)" | 244 | //usage: "\n -g IP Loose source route gateway (8 max)" |
| 237 | //usage: | 245 | //usage: |
| 238 | //usage:#define traceroute6_trivial_usage | 246 | //usage:#define traceroute6_trivial_usage |
| 239 | //usage: "[-dnrv] [-m MAXTTL] [-p PORT] [-q PROBES]\n" | 247 | //usage: "[-nrv] [-m MAXTTL] [-q PROBES] [-p PORT]\n" |
| 240 | //usage: " [-s SRC_IP] [-t TOS] [-w WAIT_SEC] [-i IFACE]\n" | 248 | //usage: " [-t TOS] [-w WAIT_SEC] [-s SRC_IP] [-i IFACE]\n" |
| 241 | //usage: " HOST [BYTES]" | 249 | //usage: " HOST [BYTES]" |
| 242 | //usage:#define traceroute6_full_usage "\n\n" | 250 | //usage:#define traceroute6_full_usage "\n\n" |
| 243 | //usage: "Trace the route to HOST\n" | 251 | //usage: "Trace the route to HOST\n" |
| 244 | //usage: "\n -d Set SO_DEBUG options to socket" | 252 | //Currently disabled (TRACEROUTE_SO_DEBUG==0) |
| 253 | ////usage: "\n -d Set SO_DEBUG options to socket" | ||
| 245 | //usage: "\n -n Print numeric addresses" | 254 | //usage: "\n -n Print numeric addresses" |
| 246 | //usage: "\n -r Bypass routing tables, send directly to HOST" | 255 | //usage: "\n -r Bypass routing tables, send directly to HOST" |
| 256 | //usage: IF_FEATURE_TRACEROUTE_VERBOSE( | ||
| 247 | //usage: "\n -v Verbose" | 257 | //usage: "\n -v Verbose" |
| 248 | //usage: "\n -m Max time-to-live (max number of hops)" | 258 | //usage: ) |
| 249 | //usage: "\n -p Base UDP port number used in probes" | 259 | //usage: "\n -m N Max number of hops" |
| 250 | //usage: "\n (default is 33434)" | 260 | //usage: "\n -q N Number of probes per hop (default 3)" |
| 251 | //usage: "\n -q Number of probes per TTL (default 3)" | 261 | //usage: "\n -p N Base UDP port number used in probes" |
| 252 | //usage: "\n -s IP address to use as the source address" | 262 | //usage: "\n (default 33434)" |
| 253 | //usage: "\n -t Type-of-service in probe packets (default 0)" | 263 | //usage: "\n -s IP Source address" |
| 254 | //usage: "\n -w Time in seconds to wait for a response (default 3)" | 264 | //usage: "\n -i IFACE Source interface" |
| 265 | //usage: "\n -t N Type-of-service in probe packets (default 0)" | ||
| 266 | //usage: "\n -w SEC Time wait for a response (default 3)" | ||
| 255 | 267 | ||
| 256 | #define TRACEROUTE_SO_DEBUG 0 | 268 | #define TRACEROUTE_SO_DEBUG 0 |
| 257 | 269 | ||
| 258 | /* TODO: undefs were uncommented - ??! we have config system for that! */ | ||
| 259 | /* probably ok to remove altogether */ | ||
| 260 | //#undef CONFIG_FEATURE_TRACEROUTE_VERBOSE | ||
| 261 | //#define CONFIG_FEATURE_TRACEROUTE_VERBOSE | ||
| 262 | //#undef CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE | ||
| 263 | //#define CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE | ||
| 264 | //#undef CONFIG_FEATURE_TRACEROUTE_USE_ICMP | ||
| 265 | //#define CONFIG_FEATURE_TRACEROUTE_USE_ICMP | ||
| 266 | |||
| 267 | |||
| 268 | #include <net/if.h> | 270 | #include <net/if.h> |
| 269 | #include <arpa/inet.h> | 271 | #include <arpa/inet.h> |
| 270 | #include <netinet/in.h> | 272 | #include <netinet/in.h> |
