pkts-rs / rscap

Rust packet capture and manipulation utilities
Apache License 2.0
14 stars 2 forks source link

Fix incorrect size of req_rx passed to setsockopt #9

Closed kxxt closed 1 month ago

kxxt commented 1 month ago

It is a tpacket_req3 struct instead of tpacket_req.

nathaniel-bennett commented 1 month ago

Good catch--thanks for submitting a PR! I'm working on getting testcases working to catch things like this; the main issue I'm running into is creating network interfaces that will deterministically pass the same packets back to sniffers each time (e.g. no additional packets sent out on them). Once https://github.com/pkts-rs/tappers is mature enough, I'll be able to do this.