From: Darafei Praliaskouski Date: Thu, 7 May 2026 15:55:45 +0000 (+0400) Subject: docs: document default trace ports X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76034763ce7d5f4e2f7c566262c0df2cff770183;p=thirdparty%2Fmtr.git docs: document default trace ports --- diff --git a/man/mtr.8.in b/man/mtr.8.in index 5101094..abf7f5b 100644 --- a/man/mtr.8.in +++ b/man/mtr.8.in @@ -446,9 +446,16 @@ Use Stream Control Transmission Protocol packets instead of ICMP ECHO. .TP .B \-P \fIPORT\fR, \fB\-\-port \fIPORT The target port number for TCP/SCTP/UDP traces. +When this option is not given, TCP and SCTP traces use port 80. +UDP traces encode the probe sequence number in the destination port +instead, so the destination port changes for each probe. .TP .B \-L \fILOCALPORT\fR, \fB\-\-localport \fILOCALPORT -The source port number for UDP traces. +The source port number for UDP traces. When this option is not given, +UDP traces use the mtr process ID as the source port, unless +.B \-\-port +was given; in that case, UDP traces encode the probe sequence number in +the source port instead. .TP .B \-Z \fISECONDS\fR, \fB\-\-timeout \fISECONDS The number of seconds to keep probe sockets open before giving up on