0

任何人都知道如何将 AIX 5.2/5.3 中 BPF 设备的数量增加到假定的系统默认值四个之上?即同时运行四个以上的tcpdump 进程?

4

1 回答 1

0

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.

于 2011-05-12T07:37:58.563 回答