mfontanini / libtins

High-level, multiplatform C++ network packet sniffing and crafting library.
http://libtins.github.io/
BSD 2-Clause "Simplified" License
1.91k stars 375 forks source link

fix windows winsock2.h include issue by including pcap.h first #354

Open douglaspeer opened 5 years ago

douglaspeer commented 5 years ago

On windows, a project that uses libtins does not build without including pcap.h first. This was first noted with the use of the sniffer class. It might be possible to modify sniffer.h with this change, but this seemed the most likely to handle any future header includes.