aboutsummaryrefslogtreecommitdiff
path: root/networking/traceroute.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/traceroute.c')
-rw-r--r--networking/traceroute.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/networking/traceroute.c b/networking/traceroute.c
index 58a9b692a..a463b0faa 100644
--- a/networking/traceroute.c
+++ b/networking/traceroute.c
@@ -219,14 +219,14 @@
219//config:config TRACEROUTE6 219//config:config TRACEROUTE6
220//config: bool "traceroute6" 220//config: bool "traceroute6"
221//config: default y 221//config: default y
222//config: depends on FEATURE_IPV6 && TRACEROUTE 222//config: depends on FEATURE_IPV6
223//config: help 223//config: help
224//config: Utility to trace the route of IPv6 packets. 224//config: Utility to trace the route of IPv6 packets.
225//config: 225//config:
226//config:config FEATURE_TRACEROUTE_VERBOSE 226//config:config FEATURE_TRACEROUTE_VERBOSE
227//config: bool "Enable verbose output" 227//config: bool "Enable verbose output"
228//config: default y 228//config: default y
229//config: depends on TRACEROUTE 229//config: depends on TRACEROUTE || TRACEROUTE6
230//config: help 230//config: help
231//config: Add some verbosity to traceroute. This includes among other things 231//config: Add some verbosity to traceroute. This includes among other things
232//config: hostnames and ICMP response types. 232//config: hostnames and ICMP response types.
@@ -234,7 +234,7 @@
234//config:config FEATURE_TRACEROUTE_USE_ICMP 234//config:config FEATURE_TRACEROUTE_USE_ICMP
235//config: bool "Enable -I option (use ICMP instead of UDP)" 235//config: bool "Enable -I option (use ICMP instead of UDP)"
236//config: default y 236//config: default y
237//config: depends on TRACEROUTE 237//config: depends on TRACEROUTE || TRACEROUTE6
238//config: help 238//config: help
239//config: Add option -I to use ICMP ECHO instead of UDP datagrams. 239//config: Add option -I to use ICMP ECHO instead of UDP datagrams.
240 240
@@ -243,6 +243,7 @@
243//applet:IF_TRACEROUTE6(APPLET(traceroute6, BB_DIR_USR_BIN, BB_SUID_MAYBE)) 243//applet:IF_TRACEROUTE6(APPLET(traceroute6, BB_DIR_USR_BIN, BB_SUID_MAYBE))
244 244
245//kbuild:lib-$(CONFIG_TRACEROUTE) += traceroute.o 245//kbuild:lib-$(CONFIG_TRACEROUTE) += traceroute.o
246//kbuild:lib-$(CONFIG_TRACEROUTE6) += traceroute.o
246 247
247//usage:#define traceroute_trivial_usage 248//usage:#define traceroute_trivial_usage
248//usage: "[-"IF_TRACEROUTE6("46")"FIlnrv] [-f 1ST_TTL] [-m MAXTTL] [-q PROBES] [-p PORT]\n" 249//usage: "[-"IF_TRACEROUTE6("46")"FIlnrv] [-f 1ST_TTL] [-m MAXTTL] [-q PROBES] [-p PORT]\n"
@@ -1204,11 +1205,13 @@ common_traceroute_main(int op, char **argv)
1204 return 0; 1205 return 0;
1205} 1206}
1206 1207
1208#if ENABLE_TRACEROUTE
1207int traceroute_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 1209int traceroute_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
1208int traceroute_main(int argc UNUSED_PARAM, char **argv) 1210int traceroute_main(int argc UNUSED_PARAM, char **argv)
1209{ 1211{
1210 return common_traceroute_main(0, argv); 1212 return common_traceroute_main(0, argv);
1211} 1213}
1214#endif
1212 1215
1213#if ENABLE_TRACEROUTE6 1216#if ENABLE_TRACEROUTE6
1214int traceroute6_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 1217int traceroute6_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;