]> git.ipfire.org Git - thirdparty/mtr.git/commit
mtr-packet: allow local address binding
authorMatt Kimball <matt.kimball@gmail.com>
Fri, 23 Dec 2016 17:37:47 +0000 (09:37 -0800)
committerMatt Kimball <matt.kimball@gmail.com>
Fri, 23 Dec 2016 17:37:47 +0000 (09:37 -0800)
commit4149c2cfbe63881105142f00a0ce6e32b0712b78
tree3e0c0fc9425fa36c823c165609bbcdebd5522291
parent7abc1cbd78161cb116ede72b4bff7cdff8d847c6
mtr-packet: allow local address binding

A probe can be bound to a local address with the 'local-ip-4' or
'local-ip-6' arguments to 'send-probe'.  The '-a' commandline
argument to mtr will cause sent probes to be bound to the specified
address.

Changed argument names for consistency:

    'localport' is now 'local-port'
    'bitpattern' is now 'bit-pattern'

mtr now opens and connects a UDP socket at startup to determine the
local address for display in the UI.

Windows error codes resulting from send-probe are now using the
same error strings which are used to report errors in the
Unix implementation.

We now use the mtr commandline timeout value for sent probes.
Edited the help and man page to reflect that the timeout value
no longer applies to only TCP probes, but now all probes.

With this change, I believe the mtr-packet implementation is at
feature parity with mainline mtr.
16 files changed:
cmdpipe.c
cmdpipe.h
mtr-packet.8.in
mtr.8.in
mtr.c
mtr.h
net.c
packet/command.c
packet/construct_unix.c
packet/construct_unix.h
packet/probe.c
packet/probe.h
packet/probe_cygwin.c
packet/probe_unix.c
test/param.py
test/probe.py