aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h1
-rw-r--r--include/usage.h20
2 files changed, 12 insertions, 9 deletions
diff --git a/include/libbb.h b/include/libbb.h
index bb4a68741..218a1935c 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -321,6 +321,7 @@ int xconnect_stream(const len_and_sockaddr *lsa);
321len_and_sockaddr* host2sockaddr(const char *host, int port); 321len_and_sockaddr* host2sockaddr(const char *host, int port);
322/* Version which dies on error */ 322/* Version which dies on error */
323len_and_sockaddr* xhost2sockaddr(const char *host, int port); 323len_and_sockaddr* xhost2sockaddr(const char *host, int port);
324len_and_sockaddr* xdotted2sockaddr(const char *host, int port);
324#if ENABLE_FEATURE_IPV6 325#if ENABLE_FEATURE_IPV6
325/* Same, useful if you want to force family (e.g. IPv6) */ 326/* Same, useful if you want to force family (e.g. IPv6) */
326len_and_sockaddr* host_and_af2sockaddr(const char *host, int port, sa_family_t af); 327len_and_sockaddr* host_and_af2sockaddr(const char *host, int port, sa_family_t af);
diff --git a/include/usage.h b/include/usage.h
index 17dcf9be9..fb1617a7c 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -2428,20 +2428,22 @@
2428#define ping_full_usage \ 2428#define ping_full_usage \
2429 "Send ICMP ECHO_REQUEST packets to network hosts" \ 2429 "Send ICMP ECHO_REQUEST packets to network hosts" \
2430 "\n\nOptions:\n" \ 2430 "\n\nOptions:\n" \
2431 " -c CNT Send only CNT pings\n" \ 2431 " -4, -6 Force IPv4 or IPv6 hostname resolution\n" \
2432 " -s SIZE Send SIZE data bytes in packets (default=56)\n" \ 2432 " -c CNT Send only CNT pings\n" \
2433 " -I IP Use IP as source address\n" \ 2433 " -s SIZE Send SIZE data bytes in packets (default=56)\n" \
2434 " -q Quiet mode, only displays output at start\n" \ 2434 " -I iface/IP Use interface or IP address as source\n" \
2435 " and when finished" 2435 " -q Quiet mode, only displays output at start\n" \
2436 " and when finished"
2436#define ping6_trivial_usage \ 2437#define ping6_trivial_usage \
2437 "[OPTION]... host" 2438 "[OPTION]... host"
2438#define ping6_full_usage \ 2439#define ping6_full_usage \
2439 "Send ICMP ECHO_REQUEST packets to network hosts" \ 2440 "Send ICMP ECHO_REQUEST packets to network hosts" \
2440 "\n\nOptions:\n" \ 2441 "\n\nOptions:\n" \
2441 " -c CNT Send only CNT pings\n" \ 2442 " -c CNT Send only CNT pings\n" \
2442 " -s SIZE Send SIZE data bytes in packets (default=56)\n" \ 2443 " -s SIZE Send SIZE data bytes in packets (default=56)\n" \
2443 " -q Quiet mode, only displays output at start\n" \ 2444 " -I iface/IP Use interface or IP address as source\n" \
2444 " and when finished" 2445 " -q Quiet mode, only displays output at start\n" \
2446 " and when finished"
2445#endif 2447#endif
2446#define ping_example_usage \ 2448#define ping_example_usage \
2447 "$ ping localhost\n" \ 2449 "$ ping localhost\n" \