Skip to main content

build_ethernet_frame_pure

Function build_ethernet_frame_pure 

Source
pub fn build_ethernet_frame_pure(
    ethertype: u16,
    src_mac: [u8; 6],
    dst_mac: [u8; 6],
    payload: &[u8],
    out: &mut [u8],
) -> Result<usize, &'static str>
Expand description

純粋な イーサネットフレーム構築関数。