From owner-freebsd-net@FreeBSD.ORG Wed Feb 3 20:51:07 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56E1B106566B for ; Wed, 3 Feb 2010 20:51:07 +0000 (UTC) (envelope-from cowens@greatbaysoftware.com) Received: from portcityhosting.com (bayringfw.portcityweb.com [64.140.243.92]) by mx1.freebsd.org (Postfix) with ESMTP id DEFD38FC14 for ; Wed, 3 Feb 2010 20:51:06 +0000 (UTC) Received: from [127.0.0.1] ([173.14.128.81]) by portcityhosting.com with MailEnable ESMTP; Wed, 3 Feb 2010 15:51:03 -0500 Message-ID: <4B69E2BD.1010906@greatbaysoftware.com> Date: Wed, 03 Feb 2010 15:55:25 -0500 From: Charles Owens MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <4B679AED.9040308@greatbaysoftware.com> In-Reply-To: <4B679AED.9040308@greatbaysoftware.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-WatchGuard-AntiVirus: part scanned. clean action=allow X-ME-Bayesian: 0.000000 Subject: Re: libnet_get_hwaddr() failing with FreeBSD 8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Feb 2010 20:51:07 -0000 Charles Owens wrote: > Hello, > > I'm working with some code (snippet below) that fails with > libnet_get_hwaddr() function (it returns false). The code works fine > under 7.x but not with 8.0 . > > Any thoughts as to what might be going on? > Issue solved. I had been building the libnet port within a jail... and if it can't find /dev/bpf0 then it compiles in dummy code for a number of functions. Building libnet in a non-jail setting is fine. The final solution for us was to tweak devfs in the jail so /dev/bpf0 _is_ present. Charles Owens Great Bay Software, Inc.