Function pcap_parser::data::get_packetdata_ethernet [−][src]
pub fn get_packetdata_ethernet(
i: &[u8],
caplen: usize
) -> Option<PacketData<'_>>
Get packet data for LINKTYPE_ETHERNET (1)
IEEE 802.3 Ethernet (10Mb, 100Mb, 1000Mb, and up); the 10MB in the DLT_ name is historical.