traviscross / mtr

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

mtr cmd specify the source port #432

Closed freemindLi closed 2 years ago

freemindLi commented 2 years ago

Hi,How does the mtr command specify the source port? I know it can specify the source IP through the -a parameter, but how to specify the source port

rewolff commented 2 years ago

RTFM? I don't know. I was able to look it up in the manual. Excercise for the reader: look it up in the manual.

freemindLi commented 2 years ago

Hey @rewolff Yes,thanks for reminding first; However, there is another problem. We can see that mtr supports --localport parameter, but this parameter only works for UDP protocol. How can specify local port or not supported when using TCP protocol detection?

rewolff commented 2 years ago

That would be a bug. I think it should be possible. That probably broke when mtr-packet was introduced. Please reopen a new issue. Patches appreciated... :-)