| What it is | A portable C/C++ library for network traffic capture | Packet capture library for Windows |
| Kind | Open source | Source available |
| Trust | 0.33 | 0.27 |
| Stars | — | — |
| Last commit | — | — |
| Licence | BSD-3-Clause | Npcap License (source-available) |
| Pricing | Free and open source | Free tier |
| Free tier | Yes | Yes |
| Self-hostable | Yes | Yes |
| Ways to run it | — | - Npcap free edition (self-hosted, Npcap License): free on up to 5 systems; unlimited when used with Nmap, Wireshark or Microsoft Defender for Identity
- Npcap OEM (self-hosted, proprietary): Internal-use perpetual licences from $4,980 (100 installs) to $59,980 (unlimited); redistribution licences $39,980 to $79,980 by company size, or a quarterly term licence from $6,980 every 3 months; maintenance extra
|
| SOC 2 | — | — |
| HIPAA | — | — |
| SSO | — | — |
| API | — | — |
| Plugins | — | — |
| MCP server | — | — |
| Company | The Tcpdump Group | Nmap Project |
| Features | - one capture API across Linux, macOS, FreeBSD, NetBSD, OpenBSD, DragonFly BSD, Solaris, AIX, QNX and GNU/Hurd
- filter expressions compiled to BPF, run in the kernel on BPF, Linux packet socket and GNU/Hurd, otherwise in user space
- reads pcap savefiles and most pcapng files; writes and appends pcap savefiles
- sends packets with pcap_inject and pcap_sendpacket
- monitor (rfmon) mode, immediate mode, non-blocking mode and timestamp type and precision selection
- rpcapd daemon for capture on a remote machine, with TLS
- memory-mapped receive on Linux
- stable ABI: binary compatibility kept across releases (libpcap.so.1)
| - kernel driver on the NDIS 6 Light-Weight Filter API, faster than WinPcap's NDIS 5 API
- Windows build of the current libpcap release, so the same capture API works on Windows, Linux and macOS
- loopback capture and injection through the Windows Filtering Platform (NPF_Loopback adapter)
- raw 802.11 capture and monitor mode with radiotap headers
- packet injection with pcap_inject()
- optional restriction of capture to Administrators, with a UAC prompt for other users
- WinPcap API-compatible mode, and source compatibility with software written for WinPcap
- EV-signed driver countersigned by Microsoft; ASLR and DEP enabled; signed DLLs and executables
- All 12 features
|
| Limitations | - Doesn't use Linux's eBPF mechanisms yet: on Linux it uses the packet socket's memory-mapped receive with classic BPF filters
- Can't capture on Windows by itself: Windows needs the Npcap (or unmaintained WinPcap) driver, which ships its own build of libpcap
- Doesn't read every pcapng file: it reads pcap files and most pcapng files
| - Doesn't support Windows XP or earlier: the Nmap Project points those users to WinPcap
|