linux平台下:
libpcap-库(tcpdump软件就是基于libpcap库)
https://www.tcpdump.org/
下面这篇文章中推荐了一些值得阅读的相关材料:
libpcap & Tcpdump
windows平台下-都兼容libpcap的API
winpcap库-最新版4.1.3-已停更多年
npcap库:在WinPcap 4.1.3源码基础上开发,优化
https://github.com/nmap/npcap
由nmap(Linux下网络发现和安全审计的网络安全工具)开发者等开发
c#:
https://github.com/chmorgan/sharppcap:Fully managed, cross platform (Windows, Mac, Linux) .NET library for capturing packets from live and file based devices.
https://github.com/PcapDotNet/Pcap.Net: