⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module vlan

Module vlan 

Source
Expand description

IEEE 802.1Q VLAN tagging support

Provides VLAN tag insertion/stripping and interface management for 802.1Q virtual LAN segmentation.

Structs§

VlanInterface
A VLAN interface bound to a parent network device.
VlanManager
Manages VLAN interfaces across all network devices.
VlanTag
IEEE 802.1Q VLAN tag

Enums§

VlanError
Errors from VLAN operations.
VlanMode
VLAN operating mode for a port/interface.

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.