📄 new_libpcap
字号:
==================== libnids-1.16 ==================== The following applies to Linux only. Linux 2.0.x kernels introduces sockets of family PF_PACKET. RecentLinux distributions, like RedHat >=6.1, are shipped with libpcap, which usesPF_PACKET sockets. New function, pcap_open_live_new() is introduced, whichallows to gather packets from all devices, including loopback (!).Unfortunately, libnids <=1.13 didn't work with this new libpcap (in myopinion, it's the fault of the latter). This is fixed (well, worked around) in 1.14. In order to capture packets from all devices, one should setnids_params.device to "all". If nids_params.promisc is non-zero, allinterfaces will be set to promiscuous mode. A certain problem may arise, if the machine routes packets among itsinterfaces. New libpcap will pass to userspace a copy of a packet per eachinterface this packet travels through. This is no problem for libnids TCPreassembly, as it deals perfectly with duplicate packets - tcp callbackfunctions will not notice anything unusuall. However, UDP and IP callbackswill receive duplicate packets. This behaviour is blocked by libnids in case of loopback device (single copies of packets will be received).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -