开发者

Increasing number of BPF devices on AIX

Anyone know how to increase the number of BPF devices in AIX 5.2/5.3 above t开发者_开发知识库he supposed system default of four? i.e. running more than four tcpdump processes concurrently?


The answer I think is "IMPOSSIBLE".

The reason is to read the header file /usr/include/net/bpf.h:

(mine is AIX 5.2)

Then u come across:

#define NBPFILTER       4

/* Flags to set the appropriate minor device */
#define BPF0    0x1    /* /dev/bpf0 */
#define BPF1    0x2    /* /dev/bpf1 */
#define BPF2    0x4    /* /dev/bpf2 */
#define BPF3    0x8    /* /dev/bpf3 */

So the number "4" is in fact hardcoded into the source code, and each of the above bpfX is all preprogrammed up to 4.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜