Struct pcap_parser::pcapng::InterfaceDescriptionBlock [−][src]
pub struct InterfaceDescriptionBlock<'a> {
pub block_type: u32,
pub block_len1: u32,
pub linktype: Linktype,
pub reserved: u16,
pub snaplen: u32,
pub options: Vec<PcapNGOption<'a>>,
pub block_len2: u32,
pub if_tsresol: u8,
pub if_tsoffset: u64,
}
Expand description
An Interface Description Block (IDB) is the container for information describing an interface on which packet data is captured.
Fields
block_type: u32
block_len1: u32
linktype: Linktype
reserved: u16
snaplen: u32
options: Vec<PcapNGOption<'a>>
block_len2: u32
if_tsresol: u8
if_tsoffset: u64
Trait Implementations
Check and correct all fields: use magic, set time resolution and fix lengths fields
Serialize to bytes representation. Do not check values