]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Windows: Prevent tools from clashing with named in system tests
authorMichal Nowak <mnowak@isc.org>
Wed, 5 Feb 2020 11:07:18 +0000 (11:07 +0000)
committerMichal Nowak <mnowak@isc.org>
Wed, 5 Feb 2020 11:07:18 +0000 (11:07 +0000)
In system tests on Windows tool's local port can sometimes clash with
'named'. On Unix the system is poked for the minimal local port,
otherwise is set to 32768 as a sane minimum. For Windows we don't
poke but set a hardcoded limit; this change aligns the limit with
Unix and changes it to 32768.

(cherry picked from commit ed7fe5fae3b22d136f0a5a92ea3b67536b10a5ce)

lib/isc/win32/net.c

index 120eb149e60a1c4f158c70d5e61c88ee61997eb8..e112ce374a3e5126615f144a4f9d6e60d847251e 100644 (file)
@@ -33,7 +33,7 @@
  * The last resort defaults: use all non well known port space
  */
 #ifndef ISC_NET_PORTRANGELOW
-#define ISC_NET_PORTRANGELOW 1024
+#define ISC_NET_PORTRANGELOW 32768
 #endif /* ISC_NET_PORTRANGELOW */
 #ifndef ISC_NET_PORTRANGEHIGH
 #define ISC_NET_PORTRANGEHIGH 65535