Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jul 2021 20:07:28 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 441d15a4825c - main - bridge tests: verify that we can't change MTU of bridge member interfaces
Message-ID:  <202107282007.16SK7ShE062563@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=441d15a4825c44bfea70e6e2b8317f2691dbf1c6

commit 441d15a4825c44bfea70e6e2b8317f2691dbf1c6
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2021-07-26 11:51:22 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2021-07-28 20:03:38 +0000

    bridge tests: verify that we can't change MTU of bridge member interfaces
    
    Reviewed by:    donner
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    Differential Revision:  https://reviews.freebsd.org/D31305
---
 tests/sys/net/if_bridge_test.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/sys/net/if_bridge_test.sh b/tests/sys/net/if_bridge_test.sh
index da797f4fd39a..3c0a31ca1076 100755
--- a/tests/sys/net/if_bridge_test.sh
+++ b/tests/sys/net/if_bridge_test.sh
@@ -577,6 +577,11 @@ mtu_body()
 	check_mtu ${bridge} 2000
 	check_mtu ${gif} 2000
 	check_mtu ${epair}a 2000
+
+	# We're not allowed to change the MTU of a member interface
+	atf_check -s exit:1 -e ignore \
+		ifconfig ${epair}a mtu 1900
+	check_mtu ${epair}a 2000
 }
 
 mtu_cleanup()



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107282007.16SK7ShE062563>