Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Nov 2001 17:02:42 -0800
From:      Marcel Moolenaar <marcel@cup.hp.com>
To:        emulation@FreeBSD.org
Cc:        des@FreeBSD.org
Subject:   Linuxulator MFC and VMware
Message-ID:  <20011106170242.A1205@gauss.cup.hp.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011106170242.A1205>