From: Michal Nowak Date: Wed, 5 Feb 2020 10:03:09 +0000 (+0000) Subject: Windows: Prevent tools from clashing with named in system tests X-Git-Tag: v9.16.0~28^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f0fcb8a3eb1cf224079d2b5734eb0cecbbaa03c;p=thirdparty%2Fbind9.git Windows: Prevent tools from clashing with named in system tests 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. --- diff --git a/lib/isc/win32/net.c b/lib/isc/win32/net.c index 6cb04bab0d0..6f3b4f28d74 100644 --- a/lib/isc/win32/net.c +++ b/lib/isc/win32/net.c @@ -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