HomeFreeBSD

sys/net: add a new ether_vlanid_t type

Description

sys/net: add a new ether_vlanid_t type

ether_vlanid_t is a type to represent a VLAN ID, for example inside a
.1q tag. since this is specific to Ethernet, put it in net/ethernet.h.

change bridge to use the new type instead of uint{16,32}_t.

Reviewed by: adrian, kp
Differential Revision: https://reviews.freebsd.org/D49836

Details

Provenance
ivyAuthored on Apr 15 2025, 4:13 PM
kpCommitted on Apr 15 2025, 9:42 PM
Reviewer
adrian
Differential Revision
D49836: sys/net: add a new ether_vlanid_t type
Parents
rG1bb8b1d7e190: libdtrace: Fix formatting of messages about drops
Branches
Unknown
Tags
Unknown