tcpdump (/dev/bpf* permission) in FreeBSD-current
Dan Nelson
dnelson at allantgroup.com
Wed Jul 7 07:18:50 PDT 2004
In the last episode (Jul 07), Patrick Dung said:
> Only /dev/bpf0 is there at boot time
> But when I run tcpdump, it automatically create
> /dev/bpf1 (I have multiple NIC).
> Running devfs at boot time cannot set the /dev/bpf1,
> which is not present.
Devfs rules use wildcard matches:
path pattern
Matches any node with a path that matches pattern. The
latter is interpreted as a glob(3)-style pattern.
So just use bpf* instead of bpf0 in your devfs rule.
--
Dan Nelson
dnelson at allantgroup.com
More information about the freebsd-questions
mailing list