Unify ping and ping6. ping has -4 and -6 which force
name resolution into IP or IPv6 only, otherwise we take address family returned by host2sockaddr() in lsa->sa.sa_family. IOW: "ping ::1" with do IPv6 ping, "ping 127.0.0.1" will do IPv4 ping. ping6 is aliased to "ping -6".
This commit is contained in:
@ -501,6 +501,13 @@ config PING
|
||||
ping uses the ICMP protocol's mandatory ECHO_REQUEST datagram to
|
||||
elicit an ICMP ECHO_RESPONSE from a host or gateway.
|
||||
|
||||
config PING6
|
||||
bool "ping6"
|
||||
default n
|
||||
depends on FEATURE_IPV6 && PING
|
||||
help
|
||||
This will give you a ping that can talk IPv6.
|
||||
|
||||
config FEATURE_FANCY_PING
|
||||
bool "Enable fancy ping output"
|
||||
default y
|
||||
@ -509,21 +516,6 @@ config FEATURE_FANCY_PING
|
||||
Make the output from the ping applet include statistics, and at the
|
||||
same time provide full support for ICMP packets.
|
||||
|
||||
config PING6
|
||||
bool "ping6"
|
||||
default n
|
||||
depends on FEATURE_IPV6
|
||||
help
|
||||
This will give you a ping that can talk IPv6.
|
||||
|
||||
config FEATURE_FANCY_PING6
|
||||
bool "Enable fancy ping6 output"
|
||||
default y
|
||||
depends on PING6
|
||||
help
|
||||
Make the output from the ping6 applet include statistics, and at the
|
||||
same time provide full support for ICMP packets.
|
||||
|
||||
config ROUTE
|
||||
bool "route"
|
||||
default n
|
||||
|
Reference in New Issue
Block a user