parse_packet

Function parse_packet 

Source
pub fn parse_packet<'a>(
    registry: &ProtocolRegistry,
    link_type: u16,
    data: &'a [u8],
) -> Vec<(&'static str, ParseResult<'a>)>
Expand description

Parse a packet through all protocol layers.

For tunneled traffic, this function tracks encapsulation depth and tunnel context. Each ParseResult includes encap_depth, tunnel_type, and tunnel_id fields that indicate whether the protocol was parsed inside a tunnel and which tunnel it was in.