Robert Clipsham
Robert Clipsham
There's no BPF support in libpnet, nor is any planned. You can filter using pure Rust, using the getters/setters for the different packet types. If you take a look in...
If the performance matters, you're better off not using the Linux network stack, and instead using netmap (libpnet supports this) or DPDK - this way you still write pure Rust,...
If someone is willing to do the work, I'd be willing to accept BPF support for libpnet behind a feature flag.
> All of that to say: It's unclear to me what the best way forward is and how to best utilize libpnet and libpcap together. I agree. I think in...
I feel like BPF makes sense in a similar way to `pnet_packet` makes sense[1] - it makes sense to have a sensible abstraction over BPF/eBPF. My personal opinion is that...
I'm not familiar with the implementation of libpnet's TCP packet - I agree there should be an additional method for this. Since I suspect this use case is fairly common,...
Unfortunately I don't have access to a Windows machine to test on - pull requests are welcome though if you can get it working :)
I've just set AppVeyor to rerun the tests - https://ci.appveyor.com/project/mrmonday/libpnet/build/1.0.244 for pull #149. We'll see if they pass.
I'm going to bounce between this and a few other things, so I'll reply as a series of comments over the next few hours rather than all at once: #####...
##### Nested `new` I find the second thing you wrote to be a lot more readable, so I'm somewhat glad the compiler doesn't accept it! Here's what's happening (roughly) -...