git: 441d15a4825c - main - bridge tests: verify that we can't change MTU of bridge member interfaces

Kristof Provost kp at FreeBSD.org
Wed Jul 28 20:07:29 UTC 2021


The branch main has been updated by kp:

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

commit 441d15a4825c44bfea70e6e2b8317f2691dbf1c6
Author:     Kristof Provost <kp at FreeBSD.org>
AuthorDate: 2021-07-26 11:51:22 +0000
Commit:     Kristof Provost <kp at 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()


More information about the dev-commits-src-all mailing list