Skip to main content

decode_frame

Function decode_frame 

Source
pub fn decode_frame(frame: &[u8]) -> Result<Frame8023>
Expand description

Parse an 802.3 + LLC frame and hand back the BPDU body.

Rejects anything whose LLC header is not the STP one, which is what distinguishes a BPDU from every other 802.3 frame on the segment.