Add a binding for pcap_dispatch - #399
Conversation
|
Hi cicku! Thanks for submitting this PR! Your effort is appreciated! TestingI tried testing this starting from @rikonaka's demo, and changed it: https://github.com/RazorBest/pcap-issues There are 3 scenarios:
The test environment assumes:
To run the Docker container: To run the packet capture: Or, for the C version: While the container is up and the sniffer is capturing, run: Then, hit Result
Edit: Actually, there was a difference between the C and Rust version. The C version was using a bigger buffer. Now, that the Rust version has a big enough buffer, your PR passes. |
Closes #388