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 { ... } }
Expand description

Common methods for PcapNG Packet blocks

Required methods

Return true if block is encoded as big-endian

Return the original length of the packet

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

Return the captured packet data without padding

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

Provided methods

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

Implementors