From owner-freebsd-stable@FreeBSD.ORG Fri Apr 16 00:06:06 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C40C106564A for ; Fri, 16 Apr 2010 00:06:06 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from chen.org.nz (ip-58-28-152-174.static-xdsl.xnet.co.nz [58.28.152.174]) by mx1.freebsd.org (Postfix) with ESMTP id 2F40B8FC1E for ; Fri, 16 Apr 2010 00:06:05 +0000 (UTC) Received: by chen.org.nz (Postfix, from userid 1000) id E2841E0451; Fri, 16 Apr 2010 12:06:02 +1200 (NZST) Date: Fri, 16 Apr 2010 12:06:02 +1200 From: Jonathan Chen To: Xin LI Message-ID: <20100416000602.GA79362@osiris.chen.org.nz> References: <20100415215941.GA14428@osiris.chen.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: gerald@freebsd.org, freebsd-stable@freebsd.org Subject: Re: ifconfig-i386 on 8-STABLE/amd64 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2010 00:06:06 -0000 On Thu, Apr 15, 2010 at 04:12:11PM -0700, Xin LI wrote: > Hi, > > On Thu, Apr 15, 2010 at 2:59 PM, Jonathan Chen wrote: > > ?? ??$ /compat/i386/sbin/ifconfig > > ?? ??: flags=8843 > > ?? ?? ?? ??inet 192.168.1.10 netmask 0xffffff00 broadcast 192.168.1.255 > > ?? ?? ?? ??inet 192.168.1.11 netmask 0xffffffff broadcast 192.168.1.11 > > ?? ?? ?? ??inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255 > > ?? ?? ?? ??inet 192.168.2.10 netmask 0xffffffff broadcast 192.168.2.10 > > ?? ?? ?? ??inet 192.168.2.12 netmask 0xffffffff broadcast 192.168.2.12 > > ?? ?? ?? ??inet 127.0.0.1 netmask 0xff000000 > > ?? ??ifconfig: ioctl(SIOCGIFINFO_IN6): Device not configured > > > > Why is the output from the 32-bit ifconfig severely mangled? > > My understanding is that 32-bit management tools like ifconfig is not > supported on 64-bit FreeBSD. Someone has to sit down and write a > compatibility layer for translating back and forth :( Ah. The reason I ask is because wine's (32-bit) network-i/f iteration code is breaking when running under amd64. It uses code similar to ifconfig's to determine available network interfaces. I didn't expect the read-only interface would break when crossing the 32 to 64 barrier. Thanks for the analysis. -- Jonathan Chen ---------------------------------------------------------------------- "In mathematics you don't understand things. You just get used to them." - Johann von Neumann