]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Lower loopback MTU size on other unix systems as well
authorPetr Špaček <pspacek@isc.org>
Wed, 25 Aug 2021 12:58:46 +0000 (14:58 +0200)
committerPetr Špaček <pspacek@isc.org>
Mon, 30 Aug 2021 15:31:48 +0000 (17:31 +0200)
This change should cover recent versions of:
Solaris, illumos, OpenBSD, FreeBSD, Dragonfly BSD, NetBSD.

(cherry picked from commit d8363845b683b2db638cedb8f4b866e4a910271d)

bin/tests/system/ifconfig.sh

index 4d323872afeba395ab13fb8e33897b0987df095d..e313c50f08ed93707791fbd62045b9d1aad5a503 100755 (executable)
@@ -19,9 +19,9 @@
 #       fd92:7065:b8e:99ff::{1..2}
 #       fd92:7065:b8e:ff::{1..2}
 #
-# On Linux, we also set the MTU on the 1500 bytes to match the default MTU on
-# physical interfaces, so we can properly test the cases with packets bigger
-# than interface MTU.
+# We also set the MTU on the 1500 bytes to match the default MTU on physical
+# interfaces, so we can properly test the cases with packets bigger than
+# interface MTU.
 
 SYSTEMTESTTOP="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
 . "$SYSTEMTESTTOP/conf.sh"
@@ -71,6 +71,7 @@ case "$1" in
                            *-*-solaris2.[8-9]|*-*-solaris2.1[0-9])
                                /sbin/ifconfig lo0:$int plumb
                                /sbin/ifconfig lo0:$int 10.53.$i.$ns up
+                               /sbin/ifconfig lo0:$int mtu 1500
                                /sbin/ifconfig lo0:$int inet6 plumb
                                [ "$ipv6" ] && /sbin/ifconfig lo0:$int \
                                        inet6 fd92:7065:b8e:${ipv6}ff::$ns up
@@ -93,13 +94,15 @@ case "$1" in
                                ;;
                            *-unknown-freebsd*)
                                ifconfig lo0 10.53.$i.$ns alias \
-                                       netmask 0xffffffff
+                                       netmask 0xffffffff \
+                                       mtu 1500
                                [ "$ipv6" ] && ifconfig lo0 inet6 \
                                        fd92:7065:b8e:${ipv6}ff::$ns alias
                                ;;
                            *-unknown-dragonfly*|*-unknown-netbsd*|*-unknown-openbsd*)
                                ifconfig lo0 10.53.$i.$ns alias \
-                                       netmask 255.255.255.0
+                                       netmask 255.255.255.0 \
+                                       mtu 1500
                                [ "$ipv6" ] && ifconfig lo0 inet6 \
                                        fd92:7065:b8e:${ipv6}ff::$ns alias
                                ;;