SubconsciousCompute / npcap-rs

Rust interface for the npcap library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npcap-rs

Rust binding for npcap library.

Prerequisite

  • Install Npcap from here
  • 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

[dependencies]
npcap-rs = { version = "0.1", features = [] }

Examples

cargo run --example list

About

Rust interface for the npcap library

License:MIT License


Languages

Language:Rust 90.2%Language:Python 9.8%