Changeset View
Changeset View
Standalone View
Standalone View
tests/sys/net/if_bridge_test.sh
Show First 20 Lines • Show All 571 Lines • ▼ Show 20 Lines | mtu_body() | ||||
# Rejected MTUs mean none of the MTUs change | # Rejected MTUs mean none of the MTUs change | ||||
atf_check -s exit:1 -e ignore \ | atf_check -s exit:1 -e ignore \ | ||||
ifconfig ${bridge} mtu 9000 | ifconfig ${bridge} mtu 9000 | ||||
check_mtu ${bridge} 2000 | check_mtu ${bridge} 2000 | ||||
check_mtu ${gif} 2000 | check_mtu ${gif} 2000 | ||||
check_mtu ${epair}a 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 | |||||
donner: That's an interesting case. Why not try to set 2000? | |||||
Not Done Inline ActionsThis verifies that we can't change bridge member interface MTUs. I think that trying to set it to the value it already has we'd still reject it and return an error. So if we tried to set 2000 we'd still get the error, but we couldn't verify that the value really didn't change. kp: This verifies that we can't change bridge member interface MTUs.
I think that trying to set it… | |||||
check_mtu ${epair}a 2000 | |||||
} | } | ||||
mtu_cleanup() | mtu_cleanup() | ||||
{ | { | ||||
vnet_cleanup | vnet_cleanup | ||||
} | } | ||||
atf_init_test_cases() | atf_init_test_cases() | ||||
Show All 13 Lines |
That's an interesting case. Why not try to set 2000?