Skip site navigation (1)Skip section navigation (2)
Date:      07 Nov 2001 09:54:02 +0100
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Marcel Moolenaar <marcel@cup.hp.com>
Cc:        emulation@FreeBSD.org
Subject:   Re: Linuxulator MFC and VMware
Message-ID:  <xzpd72v9d1x.fsf@flood.ping.uio.no>
In-Reply-To: <20011106170242.A1205@gauss.cup.hp.com>
References:  <20011106170242.A1205@gauss.cup.hp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Marcel Moolenaar <marcel@cup.hp.com> 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




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