Page MenuHomeFreeBSD

if_bridge: add group_fwd_mask ioctl for reserved link-local multicast
Needs ReviewPublic

Authored by namkhanh052005_gmail.com on Sat, Aug 8, 4:38 PM.
Tags
None
Referenced Files
F167144750: D58729.id.diff
Wed, Aug 19, 11:32 AM
F167141985: D58729.id183687.diff
Wed, Aug 19, 10:54 AM
Unknown Object (File)
Tue, Aug 18, 8:18 PM
Unknown Object (File)
Tue, Aug 18, 5:28 PM
Unknown Object (File)
Tue, Aug 18, 4:12 PM
Unknown Object (File)
Mon, Aug 17, 2:46 AM
Unknown Object (File)
Sun, Aug 16, 9:55 PM
Unknown Object (File)
Sun, Aug 16, 2:12 PM

Details

Reviewers
bms
Summary

Adds a group_fwd_mask control to if_bridge(4) (new BRDGGFWDMASK/
BRDGSFWDMASK ioctls, exposed as ifconfig bridge0 group_fwd_mask
<mask>), modeled after the Linux bridge control of the same name. The
mask selects which of the reserved link-local multicast MAC destinations
(01:80:C2:00:00:0x) the bridge forwards rather than filters. The
default is unchanged and conservative: no reserved groups are forwarded
unless an operator opts in.

This is the smallest change in the series and touches only the bridge's
ioctl control surface. The multicast snooping work follows in D2-D8.

Test Plan

group_fwd_mask ATF test covers get/set and bounds checking. Manual VNET
test confirms selected link-local traffic is forwarded only when the mask
is explicitly widened, and filtered by default. Kernel built and booted on
both stable/14 and current main (2026-08-07); ATF passes on both.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Warnings
SeverityLocationCodeMessage
Warningtests/sys/net/if_bridge_test.sh:CHMOD1Invalid Executable
Unit
No Test Coverage
Build Status
Buildable 75457
Build 72340: arc lint + arc unit