Struct pcap_parser::pcapng::SectionHeaderBlock [−][src]
pub struct SectionHeaderBlock<'a> {
pub block_type: u32,
pub block_len1: u32,
pub bom: u32,
pub major_version: u16,
pub minor_version: u16,
pub section_len: i64,
pub options: Vec<PcapNGOption<'a>>,
pub block_len2: u32,
}
Expand description
The Section Header Block (SHB) identifies the beginning of a section of the capture capture file.
The Section Header Block does not contain data but it rather identifies a list of blocks (interfaces, packets) that are logically correlated.
Fields
block_type: u32
block_len1: u32
bom: u32
Byte-order magic
major_version: u16
minor_version: u16
section_len: i64
options: Vec<PcapNGOption<'a>>
block_len2: u32
Implementations
Trait Implementations
Serialize to bytes representation (little-endian). Do not check values