Date: Wed, 7 Jul 2004 09:18:46 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Patrick Dung <patrick_dkt@yahoo.com.hk> Cc: freebsd-questions@freebsd.org Subject: Re: tcpdump (/dev/bpf* permission) in FreeBSD-current Message-ID: <20040707141846.GB57155@dan.emsphone.com> In-Reply-To: <20040706185701.13649.qmail@web51804.mail.yahoo.com> References: <444qolxmrz.fsf@be-well.ilk.org> <20040706185701.13649.qmail@web51804.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040707141846.GB57155>
