HomeFreeBSD

ifconfig: Support VLAN ID in static/deladdr

Description

ifconfig: Support VLAN ID in static/deladdr

Add an optional "vlan <n>" argument to the bridge static and deladdr
commands to allow addresses to be added to / removed from a particular
vlan. No changes to if_bridge are required as the kernel API already
supports this, it just wasn't exposed in ifconfig.

Add tests for the new functionality, and improve the test for the
existing "static" command.

Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D51243

(cherry picked from commit 3650722abf2922893540361a1369b54abc5ff8d2)

Details

Provenance
ivyAuthored on Jul 31 2025, 3:56 PM
Reviewer
kevans
Differential Revision
D51243: ifconfig: Support VLAN ID in static/deladdr
Parents
rG8b728c63f777: ifconfig/ifbridge.c: add get_vlan_id()
Branches
Unknown
Tags
Unknown