pcaparse/pcap/mod.rs
1//! Contains the Pcap parser, reader and writer
2
3mod header;
4mod packet;
5mod parser;
6mod reader;
7mod writer;
8
9pub use header::*;
10pub use packet::*;
11pub use parser::*;
12pub use reader::*;
13pub use writer::*;
14
15/// The tcpdump group has changed max snapshot length from 65535 to 262144 and used it as default.
16/// see [code](https://github.com/the-tcpdump-group/tcpdump/blob/87c90012f079200b7d49979164e8e9ed89d93d9d/netdissect.h#L342C9-L342C25)
17/// default snapshot length 262144 = 2^18
18const MAXIMUM_SNAPLEN: u32 = 262144;