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

strip_tag

Function strip_tag 

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

Strip an 802.1Q tag from an Ethernet frame.

Returns (Some(tag), inner_frame) if the frame is tagged, or (None, original_frame) if not.