Struct pcap_file::pcap_header::PcapHeader [] [src]

pub struct PcapHeader {
    pub magic_number: u32,
    pub version_major: u16,
    pub version_minor: u16,
    pub ts_correction: i32,
    pub ts_accuracy: u32,
    pub snaplen: u32,
    pub datalink: Datalink,
}

Struct that represent the global Pcap header of a Pcap file

Fields

Magic number

Major version number

Minor version number

GMT to local timezone correction

Timestamp accuracy

Max length of captured packet

Datalink type (first layer in the packet (u32))

Methods

impl PcapHeader
[src]

Convert the PcapHeader to a slice of bytes.

Trait Implementations

impl Copy for PcapHeader
[src]

impl Clone for PcapHeader
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PcapHeader
[src]

Formats the value using the given formatter.