pub fn parse_vlan_chain(
buf: &[u8],
) -> Option<(Vec<VlanPacket<'_>>, EtherType, &[u8])>Expand description
Parse a chain of 802.1Q / 802.1ad VLAN tags.
Returns the list of VLAN layers, the final EtherType, and the remaining
payload after all VLAN tags. Stops after MAX_VLAN_DEPTH tags.