]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Update interface lists in ifconfig scripts
authorMichał Kępień <michal@isc.org>
Fri, 19 Apr 2019 09:21:43 +0000 (11:21 +0200)
committerMichał Kępień <michal@isc.org>
Fri, 19 Apr 2019 09:27:06 +0000 (11:27 +0200)
Make bin/tests/system/ifconfig.bat also configure addresses ending with
9 and 10, so that the script is in sync with its Unix counterpart.

Update comments listing the interfaces created by ifconfig.{bat,sh} so
that they do not include addresses whose last octet is zero (since an
address like 10.53.1.0/24 is not a valid host address and thus the
aforementioned scripts do not even attempt configuring them).

bin/tests/system/ifconfig.bat
bin/tests/system/ifconfig.sh

index d4ba3f2dc71034d2557c079ed0b26c8c4bec2b66..3d31c8dd6081081fdb655b2d3b7b3b8c2a05f7c4 100644 (file)
@@ -10,8 +10,8 @@ rem ifconfig.bat
 rem Set up interface aliases for bind9 system tests.
 rem
 rem IPv4: 10.53.0.{1..10}                      RFC 1918
-rem       10.53.1.{0..2}
-rem       10.53.2.{0..2}
+rem       10.53.1.{1..2}
+rem       10.53.2.{1..2}
 rem IPv6: fd92:7065:b8e:ffff::{1..10}          ULA
 rem       fd92:7065:b8e:99ff::{1..2}
 rem       fd92:7065:b8e:ff::{1..2}
@@ -31,7 +31,7 @@ rem exit line
 
 echo on
 
-FOR %%I IN (1,2,3,4,5,6,7,8) DO (
+FOR %%I IN (1,2,3,4,5,6,7,8,9,10) DO (
        netsh interface ipv4 add address name=Loopback 10.53.0.%%I 255.255.255.0
        netsh interface ipv6 add address interface=Loopback fd92:7065:b8e:ffff::%%I/64
 )
index 051e2d25660eb8cb5857d726544bda77c7b28062..aab6eb534bc50cd616a2deefc536ea438613494b 100755 (executable)
@@ -13,8 +13,8 @@
 # Set up interface aliases for bind9 system tests.
 #
 # IPv4: 10.53.0.{1..10}                                RFC 1918
-#       10.53.1.{0..2}
-#       10.53.2.{0..2}
+#       10.53.1.{1..2}
+#       10.53.2.{1..2}
 # IPv6: fd92:7065:b8e:ffff::{1..10}            ULA
 #       fd92:7065:b8e:99ff::{1..2}
 #       fd92:7065:b8e:ff::{1..2}