pub fn parse_ethernet_frame(
buf: &[u8],
) -> Option<(EthernetPacket<'_>, Option<Packet<'_>>)>Expand description
Parse an Ethernet frame and dispatch the encapsulated protocol.
Returns the parsed EthernetPacket and, if the EtherType matches a
known protocol, the inner Packet as well.