traviscross / mtr

Official repository for mtr, a network diagnostic tool
http://www.bitwizard.nl/mtr/
GNU General Public License v2.0
2.65k stars 337 forks source link

Add display of destination with resolved addr under curses mode #373

Closed ZenithalHourlyRate closed 3 years ago

ZenithalHourlyRate commented 3 years ago

This PR is a further extension of #345

With the consideration of symmetry, since we display the local hostname with its source address, we should also display the remote hostname with its remote address.

This change also adds more information when running multiple mtr as #345 intended to do.

To keep the symmetry, codes were added following the original style, namely replicas of localaddr and net_localaddr were made.

The new static char array remoteaddr can be used in other modes like report or gtk. This consideration is for further development. Not to be addressed in this PR.