Page MenuHomeFreeBSD

bridge: Do outbound VLAN filtering in bridge_enqueue
ClosedPublic

Authored by ivy on Sep 4 2025, 11:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 11, 6:47 AM
Unknown Object (File)
Sat, Oct 11, 6:47 AM
Unknown Object (File)
Sat, Oct 11, 6:47 AM
Unknown Object (File)
Fri, Oct 10, 11:29 PM
Unknown Object (File)
Fri, Oct 10, 9:32 AM
Unknown Object (File)
Wed, Oct 8, 8:36 PM
Unknown Object (File)
Tue, Oct 7, 7:46 AM
Unknown Object (File)
Fri, Oct 3, 9:29 AM

Details

Summary

Outbound VLAN filtering wasn't being done for host-originated frames,
because bridge_output was missing a call to bridge_vfilter_out, like
in bridge_forward and bridge_broadcast.

Rather than adding another call, move the filtering to bridge_enqueue,
which ensures all frames will be filtered. This slightly changes the
observable behaviour since we now do pfil before vlan filtering, but
that's probably closer to what users expect anyway.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable