pub fn parse_frame(data: &[u8]) -> Result<EthernetFrame<'_>, KernelError>Expand description
Parse an Ethernet frame from raw bytes.
Returns an EthernetFrame with references into the original buffer
for zero-copy payload access.
pub fn parse_frame(data: &[u8]) -> Result<EthernetFrame<'_>, KernelError>Parse an Ethernet frame from raw bytes.
Returns an EthernetFrame with references into the original buffer
for zero-copy payload access.