From owner-freebsd-emulation Tue Nov 6 17: 3: 3 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from palrel12.hp.com (palrel12.hp.com [156.153.255.237]) by hub.freebsd.org (Postfix) with ESMTP id 40FD937B416; Tue, 6 Nov 2001 17:02:52 -0800 (PST) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by palrel12.hp.com (Postfix) with ESMTP id 677F31FA47; Tue, 6 Nov 2001 17:02:43 -0800 (PST) Received: from gauss.cup.hp.com (gauss.cup.hp.com [15.28.97.152]) by adlmail.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id RAA20788; Tue, 6 Nov 2001 17:02:43 -0800 (PST) Received: (from marcel@localhost) by gauss.cup.hp.com (8.11.6/8.11.1) id fA712gC01235; Tue, 6 Nov 2001 17:02:42 -0800 (PST) (envelope-from marcel) Date: Tue, 6 Nov 2001 17:02:42 -0800 From: Marcel Moolenaar To: emulation@FreeBSD.org Cc: des@FreeBSD.org Subject: Linuxulator MFC and VMware Message-ID: <20011106170242.A1205@gauss.cup.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.21i 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 Hi, I tracked the problem down to the socket ioctls. The LINUX_SIOCGIFADDR ioctl fails because the ifname translation fails. A simple patch that disables the name translation makes the problem go away, but the only result it has is that VMware complains about an old vnet driver. I'm not sure that's something that's broken on my machine or is still something that needs to be fixed, so if someone can test the following patch, I'd be grateful: Index: linux_ioctl.c =================================================================== RCS file: /home/ncvs/src/sys/compat/linux/linux_ioctl.c,v retrieving revision 1.55.2.5 diff -u -r1.55.2.5 linux_ioctl.c --- linux_ioctl.c 5 Nov 2001 19:08:22 -0000 1.55.2.5 +++ linux_ioctl.c 7 Nov 2001 00:57:56 -0000 @@ -1526,6 +1526,7 @@ case LINUX_SIOCGIFCONF: case LINUX_SIOCGPGRP: case LINUX_SIOCSPGRP: + case LINUX_SIOCGIFADDR: /* these ioctls don't take an interface name */ #ifdef DEBUG printf(__FUNCTION__ "(): ioctl %d\n", @@ -1534,7 +1535,6 @@ break; case LINUX_SIOCGIFFLAGS: - case LINUX_SIOCGIFADDR: case LINUX_SIOCGIFDSTADDR: case LINUX_SIOCGIFBRDADDR: case LINUX_SIOCGIFNETMASK: Dag-Erling: did you test your changes with VMware on -current? -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message