opnsense-src/tests/sys/net
Lexi Winter 64f493e664 bridge: do not allow a bridge SVI in a bridge
Disallow this:

	ifconfig bridge0 create
	ifconfig bridge0.1 create
	ifconfig bridge0 addm bridge0.1

Also disallow this:

	ifconfig vlan1 create
	ifconfig bridge0 create
	ifconfig bridge0 addm vlan1
	ifconfig vlan1 vlan 1 vlandev bridge0

Firstly, this panics due to trying to take BRIDGE_LOCK recursively.
Secondly, even if it worked, it could cause packet forwarding loops.

Reviewed by:	des
Differential Revision:	https://reviews.freebsd.org/D51310
2025-07-28 18:38:02 +01:00
..
bpf bpf: avoid panic on multiple readers 2025-04-09 09:39:01 +02:00
if_ovpn if_ovpn tests: basic float test case 2025-07-28 16:36:54 +02:00
routing Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
dhclient_pcp.conf net tests: basic test case for bpf(4)'s ability to set vlan pcp 2021-07-26 23:13:31 +02:00
if_bridge_test.sh bridge: do not allow a bridge SVI in a bridge 2025-07-28 18:38:02 +01:00
if_clone_test.sh tests/net: enable if_clone_test:epair_ipv6_up_stress 2024-01-10 20:51:53 -08:00
if_epair.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
if_epair_test.sh spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
if_gif.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
if_lagg_test.sh net tests: enable if_lagg_test:lacp_linkstate_destroy_stress 2025-04-09 15:50:35 +02:00
if_stf.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
if_tun_test.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
if_vlan.sh bridge: do not allow a bridge SVI in a bridge 2025-07-28 18:38:02 +01:00
if_wg.sh tests: extend wireguard test to cover incremental allowed-ips updates 2025-06-25 21:58:26 -05:00
Makefile tests/sys/net: run if_bridge_test in a jail 2025-06-04 06:37:18 +01:00
pcp.py netpfil tests: improve sniffer.py 2023-01-22 04:26:32 +01:00
randsleep.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
stp.py netpfil tests: improve sniffer.py 2023-01-22 04:26:32 +01:00