]> git.ipfire.org Git - thirdparty/mtr.git/commit
mtr-packet: Fall back to IPv4 only support if IPv6 sockets fail to open 174/head
authorMatt Kimball <matt.kimball@gmail.com>
Wed, 28 Dec 2016 01:09:49 +0000 (17:09 -0800)
committerMatt Kimball <matt.kimball@gmail.com>
Wed, 28 Dec 2016 01:36:48 +0000 (17:36 -0800)
commit8f5502cd5492044a4c9f9d66a3118f9c201e343c
treea0a50adb49097f76e0e57771bd9bd2b3b8c9bfba
parent883d40b1eb72467c0201b221fa074e6542e54963
mtr-packet: Fall back to IPv4 only support if IPv6 sockets fail to open

If we fail to open any IPv6 sockets, rather than aborting with an
unrecoverable error, fall back to IPv4 only support.  Socket
creation might fail, for example, when Linux is booted with
the kernel command-line "ipv6.disable=1".

In the case where opening IPv6 sockets fail,
'check-support feature ip-6' will indicate there is no support
for sending IPv6 probes.

Stricter error reporting revealed that test for protocols other
than ICMP were running on Cygwin.  Modified the tests such that
they won't run if the protocol isn't supported.
packet/command.c
packet/probe.h
packet/probe_cygwin.c
packet/probe_unix.c
packet/probe_unix.h
test/probe.py
ui/cmdpipe.c