https://github.com/subconsciouscompute/npcap-rs
Rust interface for the npcap library
https://github.com/subconsciouscompute/npcap-rs
npcap pcap rust wpcap
Last synced: 9 months ago
JSON representation
Rust interface for the npcap library
- Host: GitHub
- URL: https://github.com/subconsciouscompute/npcap-rs
- Owner: SubconsciousCompute
- License: mit
- Created: 2022-08-02T06:05:53.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-05T13:52:14.000Z (over 3 years ago)
- Last Synced: 2025-01-04T02:21:14.348Z (over 1 year ago)
- Topics: npcap, pcap, rust, wpcap
- Language: Rust
- Homepage:
- Size: 173 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# npcap-rs
Rust binding for npcap library.
# Prerequisite
- Install Npcap from [here](https://npcap.com/#download)
- Download Npcap SDK and extract the SDK in the source tree under third-party folder
- Set the NPCAP_RS_LIB_DIR to the directory where library is installed.
# Usage
You can enable these optional features for additional functionality.
- http-parse - Parses HTTP headers
- dns-parse - Parses DNS packets
To use the safe Rust bindings, Add the following to your Cargo.toml
```toml
[dependencies]
npcap-rs = { version = "0.1", features = [] }
```
# Examples
```
cargo run --example list
```