mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-03 23:28:58 +00:00
e23a0f521f
The command "ping -S dotted.quad hostname" fails on dual-stack hosts
with the confusing message "ping: invalid source address: Name does
not resolve" because IPv6 is selected in preference. If the argument
to -S is numeric (likely), select the corresponding address family,
as if -4 or -6 was specified. Add tests that either IPv4 or IPv6 can
be forced via a -S parameter.
Reviewed by: asomers
Differential Revision: https://reviews.freebsd.org/D35271
(cherry picked from commit
|
||
---|---|---|
.. | ||
tests | ||
main.c | ||
main.h | ||
Makefile | ||
Makefile.depend | ||
Makefile.depend.options | ||
ping.8 | ||
ping.c | ||
ping.h | ||
ping6.c | ||
ping6.h | ||
utils.c | ||
utils.h |