Expand description
IEEE 802.1Q VLAN tagging support
Provides VLAN tag insertion/stripping and interface management for 802.1Q virtual LAN segmentation.
Structs§
- Vlan
Interface - A VLAN interface bound to a parent network device.
- Vlan
Manager - Manages VLAN interfaces across all network devices.
- VlanTag
- IEEE 802.1Q VLAN tag
Enums§
Constants§
- TPID_
8021Q - IEEE 802.1Q Tag Protocol Identifier
Functions§
- has_
vlan_ tag - Check whether an Ethernet frame carries an 802.1Q tag.
- init
- Initialize the global VLAN manager.
- insert_
tag - Insert an 802.1Q tag into an Ethernet frame after the source MAC address.
- strip_
tag - Strip an 802.1Q tag from an Ethernet frame.
- with_
manager - Access the global VLAN manager under a lock.