200 karma · joined December 17, 2012
If you want to do things right, you can read the docs and use the appropriate API call (like using the non throwing PDU::find_pdu, use bpf filters, etc).
Yes, libtins uses libpcap to capture packets (and also to send, if you're using Windows), so basically if winpcap supports it, then it should work on libtins.
What libtins adds is the ability to parse and assemble packets easily. Parsing is automatic, so you won't need to be checking protocol fields to determine how to parse it: it will all be handled by the library.
https://github.com/mfontanini/packet-capture-benchmarks
You can have a look at some of the existing benchmarks so you get an idea of what it has to do. Let me know if you need any help.