Function get_packetdata_ethernet

Source
pub fn get_packetdata_ethernet(
    i: &[u8],
    caplen: usize,
) -> Option<PacketData<'_>>
Available on crate feature data only.
Expand description

Get packet data for LINKTYPE_ETHERNET (1)

IEEE 802.3 Ethernet (10Mb, 100Mb, 1000Mb, and up); the 10MB in the DLT_ name is historical.