Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143743764
D28917.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
987 B
Referenced Files
None
Subscribers
None
D28917.diff
View Options
diff --git a/tests/sys/net/if_bridge_test.sh b/tests/sys/net/if_bridge_test.sh
--- a/tests/sys/net/if_bridge_test.sh
+++ b/tests/sys/net/if_bridge_test.sh
@@ -117,6 +117,15 @@
then
atf_fail "STP failed to detect bridging loop"
fi
+
+ # We must also have at least some forwarding interfaces
+ a_forwarding=$(jexec a ifconfig ${bridge_a} | grep forwarding)
+ b_forwarding=$(jexec b ifconfig ${bridge_b} | grep forwarding)
+
+ if [ -z "${a_forwarding}" ] && [ -z "${b_forwarding}" ]
+ then
+ atf_fail "STP failed to detect bridging loop"
+ fi
}
stp_cleanup()
@@ -182,6 +191,15 @@
then
atf_fail "STP failed to detect bridging loop"
fi
+
+ # We must also have at least some forwarding interfaces
+ a_forwarding=$(jexec a ifconfig ${bridge_a} | grep forwarding)
+ b_forwarding=$(jexec b ifconfig ${bridge_b} | grep forwarding)
+
+ if [ -z "${a_forwarding}" ] && [ -z "${b_forwarding}" ]
+ then
+ atf_fail "STP failed to detect bridging loop"
+ fi
}
stp_vlan_cleanup()
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 1, 10:28 AM (17 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28343353
Default Alt Text
D28917.diff (987 B)
Attached To
Mode
D28917: bridge tests: Test that we also forward on some interfaces
Attached
Detach File
Event Timeline
Log In to Comment