]> 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 10:03:09 +0000 (10:03 +0000)
committerMichal Nowak <mnowak@isc.org>
Wed, 5 Feb 2020 10:03:09 +0000 (10:03 +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.

lib/isc/win32/net.c

index 6cb04bab0d0df2f4e4050136de49bc6c5bf659bf..6f3b4f28d74248ce998b0b05c1be856d57bbfb38 100644 (file)
@@ -30,7 +30,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