pfring(pf_ring)运行的几种模式

来源:互联网 发布:淘宝怎么咨询人工客服 编辑:程序博客网 时间:2024/06/06 09:52

插入pfring(pf_ring)模块时可以加入以下参数:

insmod <PF_RING PATH>/kernel/pf_ring.ko [transparent_mode=0|1|2]

[min_num_slots=x][enable_tx_capture=1|0] [ enable_ip_defrag=1|0] [quick_mode=1|0]

其中,transparent_mode指定pfring的运行模式;

transparent_mode=0:数据包从标准接口上来;此模式和一般的libpcap没有区别,性能甚至没有一般的libpcap好,建议不用;

transparent_mode=1:数据包从标准接口上来,复制一份到pfring接口中,需要支持pfring的驱动;

transparent_mode=2:纯pfring模式,需要支持pfring的驱动,数据包只从pfring上去,一般的libpcap程序不能收到数据包;此模式效率最高;


原创粉丝点击