值得借鉴的高性能(至少较libpcap来说)抓包和发包程序。
官网: http://www.netsniff-ng.org/
代码托管: http://netsniff-ng.googlecode.com/svn
概要介绍:摘自Open Source Monitoring Conference 2009 中的一个ppt
High performance network sniffer
Consists of
netsni-ng
check packets (client for Nagios)
- The sniffer itself ...
- Runs in promiscuous mode
- Bypasses the complete network stack
- Uses Kernelspace Berkeley Packet Filter (BPF)
- Allocates 128 MB or less (probing) Kernelspace Receive Ring (R