.NET wrapper for Npcap (formerly WinPcap), written in C# using P/Invoke, providing almost all Npcap functions and including a package interpretation framework.
- See the Pcap.Net wiki for guides on using and developing Pcap.Net.
- Use the Pcap.Net Q&A Group to ask questions.
Including:
- Getting the list of Live Devices on the local host.
- Reading packets from Live Devices (Network Devices) and Offline Devices (Files) using the different WinPcap methods.
- Receiving statistics on the entire capture.
- Receiving statistics of packets instead of the full packets.
- Using different sampling methods.
- Applying Berkley Packet Filters.
- Sending packets to Live Devices directly or using WinPcap's send queues.
- Dumping packets to Pcap files.
- Using Enumerables to receive packets (and LINQ).
Not including:
- AirPcap features.
- Remote Pcap features.
- Ethernet + VLAN tagging (802.1Q)
- ARP
- IPv4
- IPv6
- GRE
- ICMP
- IGMP
- UDP
- TCP
- DNS
- HTTP
- Port v1.0 C++/CLI code to managed C# code.
- Support for use in a .NET Core or .NET 5+ project.
- Keep API as compatible as possible with v1.0.
- Create the ability to support platforms other than Windows.
- Merge into a single assembly (DLL). Possible as there is no longer a C++/CLI assembly.
- TBD
- Find good solution for
PacketSendBuffer
.