From owner-freebsd-questions@FreeBSD.ORG Sat May 9 14:46:14 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 6C5F2106564A for ; Sat, 9 May 2009 14:46:14 +0000 (UTC) (envelope-from utisoft@googlemail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by mx1.freebsd.org (Postfix) with ESMTP id EF4688FC1C for ; Sat, 9 May 2009 14:46:13 +0000 (UTC) (envelope-from utisoft@googlemail.com) Received: by ey-out-2122.google.com with SMTP id 9so601816eyd.7 for ; Sat, 09 May 2009 07:46:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=aWkhGswn8jtPQde6Ei7gFsjcrZ4OxnBodYlYSXs1i1M=; b=pVnguCvF6+ynsW8D1pA00V7qc7aIg6YSViRJLq08pBZVf3UparxF/Dsw03uPeYQasU 59vasDdt815HzrFLZ66voZ67xSqSrXnTqChCyPiGn37ii05LTwbE3nSbdRaJuFhAuLcR CQUuGlArWIh6c4VUhQMNj31n8ny95VXQEJBhg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=B3UQeBRl3Ew1m4oU5d+stoqZCFM4wgpUW7nj9wiRnK2JsZ9PHx1BwrBcrrr1UHZm1E wnwEQU9mwSSlGrtXmznGRN81/yjRi5kcQfdlsbv0y+uiiDAC25TB5OgRtxopEffdePXb TBo6hOuvPQwdlfSaEmFXr3wuYB8NzVEvSyxFU= MIME-Version: 1.0 Received: by 10.210.91.7 with SMTP id o7mr2457275ebb.34.1241880373083; Sat, 09 May 2009 07:46:13 -0700 (PDT) In-Reply-To: References: From: Chris Rees Date: Sat, 9 May 2009 15:45:53 +0100 Message-ID: To: D C Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org 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: utisoft@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 May 2009 14:46:14 -0000 2009/5/8 D C : > Hello, > > I'm in the final stages of setting up a new wireless connection but have > been having problems getting bpf running. =A0For some reason, even though= bpf > has been compiled into a new kernel, the system won't automatically creat= e a > bpf0 device. =A0On boot, the system complains "pcap_open_live: (no device= s > 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 o= f > the parameters I added to wpa_supplicant.conf, which is as follows: > > ctrl_interface=3D/var/run/wpa_supplicant > ctrl_interface_group=3Dwheel > > network=3D{ > ssid=3D"my_ssid" > scan_ssid=3D1 > proto=3DRSN > key_mgmt=3DWPA-PSK > pairwise=3DCCMP > psk=3D"my_ssid" > } > > If someone would be so kind as to explain what is calling bpf and how I c= an > create a bpf0 device by hand, I would be indebted. > > Thanks... [chris@amnesiac]~% ls /dev/bpf0 /dev/bpf0 [chris@amnesiac]~% grep bpf /root/AMN AMNESIAC.conf AMNESIAC.xbox.conf [chris@amnesiac]~% grep bpf /root/AMNESIAC.conf # The `bpf' device enables the Berkeley Packet Filter. # Note that 'bpf' is required for DHCP. device bpf # Berkeley packet filter [chris@amnesiac]~% Are you *sure* you've compiled in bpf? Did you reboot after recompiling? Chris --=20 A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?