From owner-freebsd-questions@FreeBSD.ORG Sat May 9 20:22:45 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55E481065678 for ; Sat, 9 May 2009 20:22:45 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id D89228FC0C for ; Sat, 9 May 2009 20:22:44 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M2t4E-00045m-0s for freebsd-questions@freebsd.org; Sat, 09 May 2009 20:22:42 +0000 Received: from pool-71-166-147-11.washdc.east.verizon.net ([71.166.147.11]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 09 May 2009 20:22:42 +0000 Received: from nightrecon by pool-71-166-147-11.washdc.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 09 May 2009 20:22:42 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Followup-To: gmane.os.freebsd.questions Date: Sat, 09 May 2009 16:23:57 -0400 Lines: 50 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-71-166-147-11.washdc.east.verizon.net User-Agent: KNode/0.99.01 Sender: news Subject: Re: Help creating bpf0 device (bpf won't do it for me) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: nightrecon@verizon.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 May 2009 20:22:45 -0000 D C wrote: > Hello, > > I'm in the final stages of setting up a new wireless connection but have > been having problems getting bpf running. For some reason, even though > bpf has been compiled into a new kernel, the system won't automatically > create a > bpf0 device. On boot, the system complains "pcap_open_live: (no devices > found) /dev/bpf0: No such file or directory". > > The ultimate goal is to have this laptop connect wirelessly to my > WPA2-protected WAP (already working fine with other boxes) using a static > IP. > > I've successfully compiled in support for the Atheros-based PCMCIA card, > edited rc.conf to exclude DHCP and to use wpa_supplicant.conf, and > eventually compiled in bpf when I started receiving the pcap_open_live > messages. > > I suspect bpf is needed not for DHCP which is not running, but for some of > the parameters I added to wpa_supplicant.conf, which is as follows: > [snip] I confess to not having much knowledge in this area, but am interested from considering adding a card to my gateway-firewall-router box. I have two servers here at home, one is the afore mentioned gateway and the other is an Apache/MySQL/Samba server. Looking at the /dev on both I noticed that the gateway box has the bpf entries while the web server box does not. So I believe there needs to be an interface such as a firewall or DHCP which will consume the bpf in order for the /dev entry to be created. I suspect that you may have skipped over the proper creation of your wireless interface which would have created the bpf when initialized. You may consider trying to get the interface up and running with wireless connectivity without WEP/WPA first, then work on adding in the supplicant afterwards. My belief is when the network interface for the card comes up you will automagically then have the bpf entries in /dev. You may also take a look at /etc/devd.conf and /etc/defaults/pccard.conf for brain-jogging ideas. I do confess to not knowing enough about them. -Mike