commit | b9a279ba9466d8733261aff1bab0d3ec1031c34c | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Wed Jan 24 23:53:22 2007 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Wed Jan 24 23:53:22 2007 +0000 |
tree | 6a995795abf0322f540585a6c4d28847fbebb773 | |
parent | 677cb5eea52f2424bef1fd0fcc6ed3c8c8b5f1d5 [diff] |
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".