Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Feb 2003 01:56:22 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        "Stephen D. Kingrea" <reytech@sover.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: tcpdump irregularity
Message-ID:  <20030131235622.GB589@gothmog.gr>
In-Reply-To: <Pine.BSI.4.21.0301311637440.7306-100000@granite.sover.net>
References:  <Pine.BSI.4.21.0301311637440.7306-100000@granite.sover.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2003-01-31 16:44, "Stephen D. Kingrea" <reytech@sover.net> wrote:
> using 4.7 on a gateway designated machine (ipfw/natd) serving 3
> wstations.
>
> www#tcpdump -i dc0   ###in fact, any interface....
> tcpdump: (no devices found) /dev/bpf0: Device not configured

Check that you have the following in your kernel config:

	$ grep -i bpf /usr/src/sys/i386/conf/GENERIC
	# The `bpf' device enables the Berkeley Packet Filter.
	device          bpf             # Berkeley packet filter
	$

Then make sure you have proper device nodes created in /dev by
running (further down in your post you mentioned that you *do* have a
/dev/bpf0 node, so this part is already done on your setup).

	# cd /dev
	# sh MAKEDEV bpf0 bpf1 [...]

> now, i read somewhere that kernel must be compiled with option
> PACKETFILTER, however; workstation running 4.7 with generic kernel
> runs tcpdump perfectly.

There is no PACKETFILTER kernel option afaik.  When you want to know
what options are available and how to enable them for your kernel you
should consult the files GENERIC and LINT in /usr/src/sys/i386/conf.

- Giorgos


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030131235622.GB589>