opnsense-src/tests/sys
Lexi Winter 574cdcf929 bridge: fix vlan(4) on a bridge member
If an interface is a bridge member, and a vlan(4) is also created on
that interface, and net.link.bridge.member_ifaddrs=0, then vlan(4)
will never see any incoming frames because bridge doesn't pass them
to the host for processing.

Work around this by checking for locally-addressed frames using the
MAC address of the interface we received the frame on, but only if
the frame has a .1q tag and there's a vlan trunk on the interface.

This behaviour is almost certainly "wrong" and it's not clear if we
really want to support this, but it did work in the past and the
member_ifaddrs change was not supposed to break it, so this restores
the previous behaviour.

PR:	287150
MFC after:	1 week
Reviewed by:	kevans, des
Approved by:	kevans (mentor), des (mentor)
Differential Revision:	https://reviews.freebsd.org/D50623

(cherry picked from commit a5fe142e08447c7116b89159c110d02e860ac6a1)
2025-07-09 10:05:43 +02:00
..
acl Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
aio Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
audit Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
auditpipe Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
cam Make the CTL tests more resilient 2025-01-20 09:23:08 -07:00
capsicum capsicum tests: Serialize functional tests 2024-09-20 11:39:16 +00:00
cddl zfsd: replace vdevs with the AUX faulted state 2024-10-31 08:00:32 -06:00
common vnet tests: verify that we can load if_epair and if_bridge 2024-08-22 21:01:33 +02:00
compat32 tests: Don't recurse into sys/compat32 2023-05-16 02:06:34 +01:00
devrandom Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
fifo Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
file path_test: adjust test for open(O_PATH | O_CREAT) 2025-01-14 10:56:41 +02:00
fs fusefs: slightly better debugging in the tests 2025-04-17 14:14:58 -06:00
geom geli tests: Use shorter passphrases in setkey_passphrase 2025-02-14 19:25:19 +00:00
kern ptrace_test: add test for expanded reporting of syscall args 2025-04-07 04:28:23 +03:00
kqueue kqueue tests: Add a regression test 2024-02-11 10:14:44 -05:00
mac Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
mqueue Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
net bridge: fix vlan(4) on a bridge member 2025-07-09 10:05:43 +02:00
netgraph Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
netinet fibs tests: Fix test failures and simplify 2025-04-06 18:08:18 +00:00
netinet6 netinet6 tests: Add Scapy as a required program 2025-03-01 22:53:06 +00:00
netipsec tests: fix test for NULL encription 2025-04-02 10:52:32 +03:00
netlink tests/netlink: mark a test that requires tun(4) 2025-03-31 19:02:20 -07:00
netmap netmap: fix unit tests 2025-04-06 18:05:05 +00:00
netpfil pfctl: fix recursive printing of NAT rules 2025-04-16 09:34:56 +02:00
opencrypto Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:20 -06:00
pjdfstest Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
posixshm shm: Respect PROT_MAX when creating private mappings 2024-11-04 15:38:35 +00:00
ses Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
sound sound: Implement AFMT_FLOAT support 2025-04-06 02:28:14 +02:00
sys queue(3): Add simple tests for some macros for all list/tailq types 2025-05-01 21:48:48 +02:00
vfs Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
vm shm: Respect PROT_MAX when creating private mappings 2024-11-04 15:38:35 +00:00
vmm spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
Makefile ctl: add some ATF tests for READ BUFFER 2024-09-04 15:00:20 +00:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00