Trait pcap_parser::traits::PcapNGPacketBlock[][src]

pub trait PcapNGPacketBlock {
    fn big_endian(&self) -> bool;
fn orig_len(&self) -> u32;
fn raw_packet_data(&self) -> &[u8];
fn packet_data(&self) -> &[u8]; fn truncated(&self) -> bool { ... } }

Common methods for PcapNG Packet blocks

Required methods

fn big_endian(&self) -> bool[src]

Return true if block is encoded as big-endian

fn orig_len(&self) -> u32[src]

Return the original length of the packet

fn raw_packet_data(&self) -> &[u8][src]

Return the raw captured packet data, with padding if present, and eventually truncated.

fn packet_data(&self) -> &[u8][src]

Return the captured packet data without padding

If packet was truncated, the truncated data field is returned.

Loading content...

Provided methods

fn truncated(&self) -> bool[src]

Return true if block data was truncated (typically when snaplen < origlen)

Loading content...

Implementors

Loading content...