From owner-freebsd-hackers Wed Jan 22 04:38:05 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id EAA02320 for hackers-outgoing; Wed, 22 Jan 1997 04:38:05 -0800 (PST) Received: from nic.follonett.no (nic.follonett.no [194.198.43.10]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id EAA02313 for ; Wed, 22 Jan 1997 04:38:01 -0800 (PST) Received: (from uucp@localhost) by nic.follonett.no (8.8.3/8.8.3) with UUCP id NAA04267; Wed, 22 Jan 1997 13:36:24 +0100 (MET) Received: from oo7 (oo7.dimaga.com [192.0.0.65]) by dimaga.com (8.7.5/8.7.2) with SMTP id NAA15031; Wed, 22 Jan 1997 13:12:13 +0100 (MET) Message-Id: <3.0.32.19970122131212.00b565f0@dimaga.com> X-Sender: eivind@dimaga.com X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Wed, 22 Jan 1997 13:12:14 +0100 To: kavitha From: Eivind Eklund Subject: Re: WIDE DHCP Cc: tomy@gunpowder.Stanford.EDU, hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk At 04:27 PM 1/21/97 -0500, kavitha wrote: >Hello, > 2. When I compile with the above modifications, while running it > gets stuck at open("/dev/bpf*",O_RDWR) in "initialize" in dhcpc_subr.c > with the message > "Can't open bpf to read the dhcp messages /dev/bpf9: No > such file or directory". > > Isn't it supposed to create the file if there is none? > Or am I supposed to keep some bpf files in /dev? (This part will go away when devfs is really operational - hopefully only a couple of months into the future) Run the following lines as root: # cd /dev # ./MAKEDEF bpf[n] where n is the maximum device number you want. (This part will go away the day when we get bpf as a kernel module; especially if it is demand-loaded :) You will also need to compile a kernel with bpf enabled; copying this ---- Cut here ---- # The `bpfilter' pseudo-device enables the Berkeley Packet Filter. Be # aware of the legal and administrative consequences of enabling this # option. The number of devices determines the maximum number of # simultaneous BPF clients programs runnable. pseudo-device bpfilter 4 #Berkeley packet filter ---- Cut here ---- into your kernel config and re-creating your kernel should do the trick. (No, I haven't run mobile IP - I kan just comment on your problems with bpf.) Eivind Eklund / perhaps@yes.no / http://maybe.yes.no/perhaps/