As a very recent libpnet contributor, packet filters are on my personal wishlist. That said, I don't use them in my current project that uses libpnet, so they're definitely in the backlog, although they shouldn't be too difficult to implement.
As for reading and writing pcap files, I just use the pcap crate and use a common buffer. It's a little clumsy but it does work.
As for reading and writing pcap files, I just use the pcap crate and use a common buffer. It's a little clumsy but it does work.