HomeFreeBSD

ifconfig: Improve VLAN identifier parsing

Description

ifconfig: Improve VLAN identifier parsing

VLAN identifier 0xFFF is reserved. It must not be configured or
transmitted.

Also validate during parsing to prevent potential integer overflow.

Reviewed by: network, melifaro
Fixes: c7cffd65c5d85 Add support for stacked VLANs (IEEE 802.1ad, AKA Q-in-Q)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D39282

Details

Provenance
zleiAuthored on Apr 2 2023, 5:54 PM
Reviewer
network
Differential Revision
D39282: ifconfig: Improve VLAN Identifier number parsing
Parents
rG5f3d0399e903: lagg(4): Tap traffic after protocol processing
Branches
Unknown
Tags
Unknown