dotpcap/sharppcap
Official repository - Fully managed, cross platform (Windows, Mac, Linux) .NET library for capturing packets observed · 2026-08-28
Health v2 · maintenance only
67/100
- Activity 99
- Release rhythm 8
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4116
- days_rel: n/a
- days_push: 8
- n_releases_24m: 0
Adoption not part of the score
1479 stars · 273 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
SharpPcap is a fully managed, cross-platform .NET library for capturing packets from live network devices and reading/writing pcap capture files. It supports libpcap on Linux/macOS and Npcap/WinDivert on Windows, with BPF filtering and high-performance ReadOnlySpan-based APIs.
Use cases
- capture packets from a network interface in c#
- read and parse pcap capture files in .net
- build a network traffic monitor in c#
- filter packets with berkeley packet filter expressions
- write captured packets to a pcap file
- list available network devices in .net
- sniff packets cross-platform on windows mac and linux
When to choose
- you need packet capture in a .NET application across Windows, macOS, and Linux
- you want to read or write pcap/pcap-ng capture files from managed code
- you need BPF-based packet filtering with a high-performance, allocation-conscious API
When to avoid
- you need packet dissection or protocol construction - use Packet.Net alongside it
- your project is not on .NET or .NET Framework
- you need high-level network analysis features rather than raw capture
Facets
library · maturity active
networking developer-tools networking security developer-tools cross-platform windows dotnet packet-capture libpcap npcap windivert pcap packet-sniffing csharp bpf-filters linux macos
1 source
- readme: https://github.com/dotpcap/sharppcap · fetched 2026-08-28 · cc6ad419debe
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dotpcap/sharppcap | main | 67 |
For agents
markdown · JSON · MCP: product_card(name="dotpcap/sharppcap")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem