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

construct_frame

Function construct_frame 

Source
pub fn construct_frame(
    dst: MacAddress,
    src: MacAddress,
    ethertype: u16,
    payload: &[u8],
) -> Vec<u8>
Expand description

Construct an Ethernet frame from components.

Builds a complete frame with header and payload, suitable for transmission via a network device.