开发者

Increasing number of BPF devices on AIX

开发者 https://www.devze.com 2023-01-08 23:38 出处:网络
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

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

精彩评论

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

关注公众号