From owner-freebsd-questions Wed Apr 14 8:28:55 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id AE691150E8 for ; Wed, 14 Apr 1999 08:28:53 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.8.8) id LAA24369; Wed, 14 Apr 1999 11:26:36 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199904141526.LAA24369@cc942873-a.ewndsr1.nj.home.com> Subject: Re: the berkeley packet filter In-Reply-To: <37148C75.188D60B5@ustrap.com> from John Chrobak at "Apr 14, 99 07:39:17 am" To: john@ustrap.com (John Chrobak) Date: Wed, 14 Apr 1999 11:26:36 -0400 (EDT) Cc: freebsd-questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Chrobak wrote, > To anyone that can help me out, > I am working with freebsd release 2.2.8 . I have most everything set up > the way I want it, except any apps requiring the bpf0. It is included > in the GENERIC kernel make list file, defined as: > PSEUDO DEVICE bpfilter 4 #Berkeley packet filter > and it is in the /dev directory but when I try to run ntop or trafshow I > get an error message telling me that the bpf0 is not configured. What > am I doing wrong or am I missing something. I'm trying to understand this. Are you saying that you added bpfilter to the GENERIC kernel, because I'm pretty sure it is not there by default. Second, the line should be, pseudo-device bpfilter 4 # Berkeley Packet Filter Not 'PSEUDO DEVICE.' Did you rebuild the kernel after making the change? Here is what I suggest you do, # cd /sys/i386/conf # cp GENERIC MYKERNEL (using your prefered editor, add the 'bpfilter' line above to the kernel config.) # config MYKERNEL # cd ../../conf/MYKERNEL # make depend # make # make install Of course, feel free to subsitute something else for 'MYKERNEL' like your hostname (by tradition, a kernel name is usually all caps though), and watch that each step of the process does not generate errors. After the new kernel is built and installed, you will need to restart. The bpf devices should then work. HTH. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message