Registry / networking / pcap-file

pcap-file

JSON →
library2.0.0rscratesunverified

A crate to parse, read and write Pcap and PcapNg

# Cargo.toml [dependencies] pcap-file = "2.0.0"
INSTALL
IMPORT
SIG · PCAP-FILE
P
pcap-file
networkingrustv2.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PcapReader
use pcap_file::PcapReader;

Read packets from a PCAP file.

use pcap_file::PcapReader; use std::fs::File; fn main() { let file = File::open("capture.pcap").unwrap(); let reader = PcapReader::new(file).unwrap(); for packet in reader { println!("Packet: {} bytes", packet.data.len()); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
pcap-file — cargo add pcap-file · libregistry