WinPcap is the major open source packet sniffing library for Microsoft Windows, Unfortunately it is no longer under active maintenance and hasn’t been for quite a while. But, fear not, Npcap have picked up the baton. Sort of.
Npcap is a free, but not open source, packet sniffing library for Microsoft Windows operating systems. The library is compatible with libpcap but the implementation is necessarily tailored to the Microsoft Windows device driver model.