快速开始
安装
安装pfring
安装
pfring
,用于映射数据包 当前我只在ubuntu18.04编译成功,太高的版本编译失败,但是不知道为什么?
$ 下载代码
git clone https://github.com/ntop/PF_RING.git
$ 安装源码
sudo apt install linux-source
sudo apt install linux-headers-$(uname -r)
$ 内核模块安装
cd PF_RING/kernel
make
sudo make install
$ 配置
sudo insmod pf_ring.ko min_num_slots=65536 enable_tx_capture=0
$ 构建与安装库
cd PF_RING/userland/lib
./configure && make
sudo make install
cd ../libpcap
./configure && make
sudo make install
$ 例子程序实现
cd PF_RING/userland/examples