From owner-freebsd-questions@FreeBSD.ORG Wed Jul 7 14:18:50 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C812216A4CE for ; Wed, 7 Jul 2004 14:18:50 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AC9B43D41 for ; Wed, 7 Jul 2004 14:18:50 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i67EIklx082441; Wed, 7 Jul 2004 09:18:46 -0500 (CDT) (envelope-from dan) Date: Wed, 7 Jul 2004 09:18:46 -0500 From: Dan Nelson To: Patrick Dung Message-ID: <20040707141846.GB57155@dan.emsphone.com> References: <444qolxmrz.fsf@be-well.ilk.org> <20040706185701.13649.qmail@web51804.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040706185701.13649.qmail@web51804.mail.yahoo.com> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: tcpdump (/dev/bpf* permission) in FreeBSD-current X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jul 2004 14:18:50 -0000 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