An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

![](https://gitlab.subcom.tech/subcom/npcap-rs/badges/main/pipeline.svg)

# 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
```