Skip to content

LuoZijun/rust-pfring-sys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust pfring-sys

Date: 2018/12/04

安装预编译的 PF_RING 内核模块以及用户态的 API:

# Debian
wget http://apt.ntop.org/stretch/all/apt-ntop.deb
dpkg -i apt-ntop.deb
apt install pfring pfring-dkms pfring-drivers-zc-dkms

从源码开始编译 PF_RING 内核模块 以及用户态 API:

# Debian
sudo apt install bison flex

git clone https://github.com/ntop/PF_RING.git

cd  PF_RING/driver
make

cd  PF_RING/kernel
make

cd PF_RING/userland
make libpfring pcap build_examples

构建对 Rust 的绑定:

cargo build

Rust 语言样例:

cargo build --example dump
sudo ./target/debug/dump

C 语言样例:

cc examples/dump.c -Wall -g -lpfring -lpcap -o dump
sudo ./dump

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published