]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
Adjust MIN_PORT to match other implementations 426/head
authorAndrew Marshall <andrew@johnandrewmarshall.com>
Wed, 23 Mar 2022 15:36:48 +0000 (11:36 -0400)
committerAndrew Marshall <andrew@johnandrewmarshall.com>
Wed, 23 Mar 2022 16:14:36 +0000 (12:14 -0400)
Port 33434 is the IANA-reserved port for traceroute. It also seems to be
the most common start port. The following implementations, and
likely others, use it as their start port:

- Apple macOS traceroute
- FreeBSD traceroute
- GNU inetutils-traceroute
- Modern traceroute for Linux
- OpenBSD traceroute

The benefit to using a standard starting port is that some firewalls may
have these ports allowed, whereas other ports may be blocked, so there
is a greater probability the probe will succeed.

packet/probe_unix.h

index f217a66e0e52d476e230c017514513625fc536bd..f3e8207b1063fdc1fd8f95a42ba80ff4c2a94103 100644 (file)
@@ -25,7 +25,7 @@
 #endif
 
 /*  The range of local port numbers to use for probes  */
-#define MIN_PORT 33000
+#define MIN_PORT 33434
 #define MAX_PORT 65535
 
 /*  We need to track the transmission and timeouts on Unix systems  */