Struct pcarp::block::InterfaceStatistics
source · pub struct InterfaceStatistics<'a> {
pub interface_id: InterfaceId,
pub timestamp_high: u32,
pub timestamp_low: u32,
pub options: &'a [u8],
}
Expand description
Defines how to store some statistical data (e.g. packet dropped, etc) which can be useful to understand the conditions in which the capture has been made. If this appears in a file, an Interface Description Block is also required, before this block.
The Interface Statistics Block (ISB) contains the capture statistics for a given interface and it is optional. The statistics are referred to the interface defined in the current Section identified by the Interface ID field. An Interface Statistics Block is normally placed at the end of the file, but no assumptions can be taken about its position - it can even appear multiple times for the same interface.
This documentation is copyright (c) 2018 IETF Trust and the persons identified as the authors of this document. All rights reserved. Please see the linked document for the full copyright notice.
Fields§
§interface_id: InterfaceId
Specifies the interface these statistics refers to; the correct interface will be the one whose Interface Description Block (within the current Section of the file) is identified by same number (see Section 4.2) of this field.
timestamp_high: u32
Time this statistics refers to. The format of the timestamp is the same already defined in the Enhanced Packet Block (Section 4.3).
timestamp_low: u32
§options: &'a [u8]
Optionally, a list of options (formatted according to the rules defined in Section 3.5) can be present.
Trait Implementations§
source§impl<'a> Clone for InterfaceStatistics<'a>
impl<'a> Clone for InterfaceStatistics<'a>
source§fn clone(&self) -> InterfaceStatistics<'a>
fn clone(&self) -> InterfaceStatistics<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more