rust-pcap / pcap

Rust language pcap library
Apache License 2.0
610 stars 138 forks source link

Add support for flush on savefiles #177

Closed 3ddi closed 3 years ago

3ddi commented 3 years ago

I noticed there is an API for that already in libpcap (pcap_dump_flush). I'm using the crate to create pcap files with a certain size limit so I constantly need to check what is the output size on the disk.

I opened a PR to add that functionality

Wojtek242 commented 3 years ago

Thanks! I've merged it now. CI failed on your PR, but that was due to a new clippy lint which I've just fixed on master so hopefully there won't be any other surprises.