From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 14 07:22:33 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFC2616A407 for ; Tue, 14 Nov 2006 07:22:33 +0000 (UTC) (envelope-from gurdiga@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FCF443D46 for ; Tue, 14 Nov 2006 07:22:22 +0000 (GMT) (envelope-from gurdiga@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so1357133wxc for ; Mon, 13 Nov 2006 23:22:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=MrhEeIbPxWsL+BNlLtJb7zE3ORVRIvbt4fD5nD6MlTfHBcUSSOyzYoiRWCURL3Gn2PzSXaiH0wbBPJ6qzbohaQrogSHaWadlmLdQPIKWiBe/Ek1ndXWBtL/GSx/DW1MuQ2ZCqEMDo1sAfTVp7mEIbh+Q3K+22p+7dZIrr+c2Cis= Received: by 10.90.25.7 with SMTP id 7mr624594agy.1163488942439; Mon, 13 Nov 2006 23:22:22 -0800 (PST) Received: by 10.90.120.15 with HTTP; Mon, 13 Nov 2006 23:22:22 -0800 (PST) Message-ID: Date: Tue, 14 Nov 2006 09:22:22 +0200 From: "Vlad GURDIGA" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Mailman-Approved-At: Tue, 14 Nov 2006 12:32:23 +0000 Subject: bpf kernel module X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Nov 2006 07:22:33 -0000 Hello, I posted the same question on freebsd-questions list but did not get an exact answer, so, I'm going on with my "research". :) I'm trying to keep very close touch with 6.1_STABLE cvsupping sources once a week or even more often. I'm thinking of removing as much as possible devices from the kernel loading them from /boot/loader.conf instead, so I could rebuild and install them without a whole kernel/world rebuild and reboot when sources change. I'm not sure this is a correct way, any piece of advice regarding this would be highly appreciated. :) So, I've successfully done that with sound and network card drivers, but did not succeed with removing bpf from the kernel. Booting a kernel with no bpf support, and with ng_bpf_load="YES" in my loader.conf [which, I found on the questions list that is not what I need], the pflogd fails to start with this error: Nov 11 20:22:33 uxterm pflogd[10251]: Failed to initialize: (no devices found) /dev/bpf0: No such file or directory Nov 11 20:22:33 uxterm pflogd[10251]: Exiting, init failure And, tcpdump also fails saying that "no suitable device found". Of course there is no /dev/bpf0. Is there any way to have the bpf0 device without booting a kernel with bpf device included?