From owner-freebsd-emulation Wed Nov 7 0:54: 9 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id DA9BB37B419 for ; Wed, 7 Nov 2001 00:54:04 -0800 (PST) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 1DDC614C40; Wed, 7 Nov 2001 09:54:03 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Marcel Moolenaar Cc: emulation@FreeBSD.org Subject: Re: Linuxulator MFC and VMware References: <20011106170242.A1205@gauss.cup.hp.com> From: Dag-Erling Smorgrav Date: 07 Nov 2001 09:54:02 +0100 In-Reply-To: <20011106170242.A1205@gauss.cup.hp.com> Message-ID: Lines: 37 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Marcel Moolenaar writes: > I tracked the problem down to the socket ioctls. The LINUX_SIOCGIFADDR > ioctl fails because the ifname translation fails. Yes. Sorry about that; I was aware of the problem but forgot about it. Try this patch instead of Marcel's (apply with 'patch -l'): Index: /sys/compat/linux/linux_ioctl.c =================================================================== RCS file: /home/ncvs/src/sys/compat/linux/linux_ioctl.c,v retrieving revision 1.71 diff -u -r1.71 linux_ioctl.c --- /sys/compat/linux/linux_ioctl.c 20 Oct 2001 00:01:26 -0000 1.71 +++ /sys/compat/linux/linux_ioctl.c 7 Nov 2001 08:50:31 -0000 @@ -1348,9 +1348,7 @@ return (ENOIOCTL); } -#define IFP_IS_ETH(ifp) ((ifp->if_flags & \ - (IFF_LOOPBACK|IFF_POINTOPOINT|IFF_BROADCAST)) == \ - IFF_BROADCAST) +#define IFP_IS_ETH(ifp) (ifp->if_type == IFT_ETHER) /* * Construct the Linux name for an interface Please verify that address translation is still applied to WaveLAN interfaces. > Dag-Erling: did you test your changes with VMware on -current? No, I haven't touched VMWare since early 2.0 days. Is somebody willing to donate me a non-time-limited VMWare license? DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message