Skip to main content

DatagramParser

Trait DatagramParser 

Source
pub trait DatagramParser: Send + 'static {
    type Message: Send + 'static;

    // Required method
    fn parse(&mut self, payload: &[u8], side: FlowSide) -> Vec<Self::Message>;
}
Available on crate feature session only.
Expand description

Parses a packet-oriented L7 protocol. One instance per flow; receives one L4 payload at a time along with which side sent it.

Required Associated Types§

Source

type Message: Send + 'static

Required Methods§

Source

fn parse(&mut self, payload: &[u8], side: FlowSide) -> Vec<Self::Message>

Parse one L4 payload. side is the direction relative to the flow’s initiator. Returns any complete messages decoded.

Implementors§

Source§

impl DatagramParser for DnsUdpParser

Available on crate feature dns only.