diff options
Diffstat (limited to 'include/usage.h')
-rw-r--r-- | include/usage.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/usage.h b/include/usage.h index 5feb3ac10..87678f5e9 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -733,12 +733,19 @@ | |||
733 | #else | 733 | #else |
734 | #define USAGE_IFCONFIG_OPT_A(a) | 734 | #define USAGE_IFCONFIG_OPT_A(a) |
735 | #endif | 735 | #endif |
736 | #ifdef CONFIG_FEATURE_IPV6 | ||
737 | #define USAGE_IPV6(a) a | ||
738 | #else | ||
739 | #define USAGE_IPV6(a) | ||
740 | #endif | ||
736 | 741 | ||
737 | #define ifconfig_trivial_usage \ | 742 | #define ifconfig_trivial_usage \ |
738 | USAGE_IFCONFIG_OPT_A("[-a]") " <interface> [<address>]" | 743 | USAGE_IFCONFIG_OPT_A("[-a]") " <interface> [<address>]" |
739 | #define ifconfig_full_usage \ | 744 | #define ifconfig_full_usage \ |
740 | "configure a network interface\n\n" \ | 745 | "configure a network interface\n\n" \ |
741 | "Options:\n" \ | 746 | "Options:\n" \ |
747 | USAGE_IPV6("[add <address>[/<prefixlen>]]\n") \ | ||
748 | USAGE_IPV6("[del <address>[/<prefixlen>]]\n") \ | ||
742 | "\t[[-]broadcast [<address>]] [[-]pointopoint [<address>]]\n" \ | 749 | "\t[[-]broadcast [<address>]] [[-]pointopoint [<address>]]\n" \ |
743 | "\t[netmask <address>] [dstaddr <address>]\n" \ | 750 | "\t[netmask <address>] [dstaddr <address>]\n" \ |
744 | USAGE_SIOCSKEEPALIVE("\t[outfill <NN>] [keepalive <NN>]\n") \ | 751 | USAGE_SIOCSKEEPALIVE("\t[outfill <NN>] [keepalive <NN>]\n") \ |
@@ -1370,6 +1377,29 @@ | |||
1370 | "1 packets transmitted, 1 packets received, 0% packet loss\n" \ | 1377 | "1 packets transmitted, 1 packets received, 0% packet loss\n" \ |
1371 | "round-trip min/avg/max = 20.1/20.1/20.1 ms\n" | 1378 | "round-trip min/avg/max = 20.1/20.1/20.1 ms\n" |
1372 | 1379 | ||
1380 | #ifndef CONFIG_FEATURE_FANCY_PING6 | ||
1381 | #define ping6_trivial_usage "host" | ||
1382 | #define ping6_full_usage "Send ICMP ECHO_REQUEST packets to network hosts" | ||
1383 | #else | ||
1384 | #define ping6_trivial_usage \ | ||
1385 | "[OPTION]... host" | ||
1386 | #define ping6_full_usage \ | ||
1387 | "Send ICMP ECHO_REQUEST packets to network hosts.\n\n" \ | ||
1388 | "Options:\n" \ | ||
1389 | "\t-c COUNT\tSend only COUNT pings.\n" \ | ||
1390 | "\t-s SIZE\t\tSend SIZE data bytes in packets (default=56).\n" \ | ||
1391 | "\t-q\t\tQuiet mode, only displays output at start\n" \ | ||
1392 | "\t\t\tand when finished." | ||
1393 | #endif | ||
1394 | #define ping6_example_usage \ | ||
1395 | "$ ping6 ip6-localhost\n" \ | ||
1396 | "PING ip6-localhost (::1): 56 data bytes\n" \ | ||
1397 | "64 bytes from ::1: icmp6_seq=0 ttl=64 time=20.1 ms\n" \ | ||
1398 | "\n" \ | ||
1399 | "--- ip6-localhost ping statistics ---\n" \ | ||
1400 | "1 packets transmitted, 1 packets received, 0% packet loss\n" \ | ||
1401 | "round-trip min/avg/max = 20.1/20.1/20.1 ms\n" | ||
1402 | |||
1373 | #define pivot_root_trivial_usage \ | 1403 | #define pivot_root_trivial_usage \ |
1374 | "NEW_ROOT PUT_OLD" | 1404 | "NEW_ROOT PUT_OLD" |
1375 | #define pivot_root_full_usage \ | 1405 | #define pivot_root_full_usage \ |