]> git.ipfire.org Git - thirdparty/mtr.git/commit
commandline: Added --interface for using a named network interface 211/head
authorMatt Kimball <matt.kimball@gmail.com>
Sun, 16 Jul 2017 17:19:32 +0000 (10:19 -0700)
committerMatt Kimball <matt.kimball@gmail.com>
Sun, 16 Jul 2017 17:19:32 +0000 (10:19 -0700)
commit8cfd8c36b50e1d68fd2634501e46344724a7e292
tree313c2473f3ef31ed732e169d194d382b2cbe33b1
parenteec614bad42bc4adf519b5165b52e03b9e9b1b84
commandline: Added --interface for using a named network interface

Using '--interface' on the commandline (or '-I') will specify
a network interface by name.  This is sometimes a more convenient
alternative to using '--address' for specifying a source address
from which to send probes.

This can be useful when you have both a wired ethernet connection
and WiFi connection, and wish to use a specific connection for the
purposes of tracing.

This feature was requested in issue #207.

This change also cleans up main() slightly by factoring out the
hostent structure generation.
man/mtr.8.in
ui/mtr.c
ui/mtr.h
ui/net.c