linux

来自「libnids w32 libnids w32 libnids w32 libn」· 代码 · 共 21 行

TXT
21
字号
                             ====================                                 libnids-1.17                             ====================	The following applies to Linux only.	Linux 2.0.x kernels introduces sockets of family PF_PACKET whichallow to gather packets from all devices, including loopback (!). Recentlibpcap versions (0.6.x for sure) support this feature; you have to passdevice "any" to pcap_open_live in order to listen on such a socket. Forbackwards compatibility with libnids <= 1.16, you can also assign device "all"to nids_params.device. If nids_params.promisc is nonzero, libnids (becauselibpcap does not support it) will try to set all interfaces into promiscuous mode, one by one.  	A certain problem may arise, if the machine routes packets among itsinterfaces. 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 unusual. However, UDP and IP callbackswill receive duplicate packets.   

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?