pako_core/packet_info.rs
1use pako_tools::{FiveTuple, Flow};
2
3pub struct PacketInfo<'l3, 'l4, 't, 'f> {
4 /// The five-tuple for *this packet*
5 pub five_tuple: &'t FiveTuple,
6 /// true if this packet is in same direction as the first packet
7 /// seen in this flow
8 pub to_server: bool,
9 pub l3_type: u16,
10 /// Raw L4 data
11 pub l4_data: &'l3 [u8],
12 /// L4 payload type
13 pub l4_type: u8,
14 /// L4 payload, if protocol is known by core engine
15 pub l4_payload: Option<&'l4 [u8]>,
16 pub flow: Option<&'f Flow>,
17 pub pcap_index: usize,
18}