opnsense-src/tests/sys/net
Kristof Provost ff5a685270 if_vlan: handle VID conflicts
If we fail to change the vlan id we have to undo the removal (and vlan id
change) in the error path. Otherwise we'll have removed the vlan object from the
hash table, and have the wrong vlan id as well. Subsequent modification attempts
will then try to remove an entry which doesn't exist, and panic.

Undo the vlan id modification if the insertion in the hash table fails, and
re-insert it under the original vlan id.

PR:		279195
Reviewed by:	zlei
MFC atfer:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D45285

(cherry picked from commit bdd12889eaa64032b3d09ef47e9a6f7081863378)
2024-10-11 12:04:09 +02:00
..
if_ovpn vnet tests: check for if_bridge.ko 2024-06-11 08:03:23 +02:00
routing Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -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 vnet tests: check for if_bridge.ko 2024-06-11 08:03:23 +02:00
if_clone_test.sh Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06: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 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06: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 if_vlan: handle VID conflicts 2024-10-11 12:04:09 +02:00
if_wg.sh wg tests: Add a simple regression test case for netmap support 2024-05-20 09:42:46 -04:00
Makefile wg tests: Add a simple regression test case for netmap support 2024-05-20 09:42:46 -04: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