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

insert_tag

Function insert_tag 

Source
pub fn insert_tag(frame: &[u8], tag: VlanTag) -> Vec<u8>
Expand description

Insert an 802.1Q tag into an Ethernet frame after the source MAC address.

Returns a new frame with the 4-byte tag inserted at offset 12.