Date: Mon, 19 Nov 2001 07:43:54 -0800 (PST) From: Ian Dowse <iedowse@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/compat/linux linux_ioctl.c linux_ioctl.h Message-ID: <200111191543.fAJFhs205300@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
iedowse 2001/11/19 07:43:54 PST Modified files: sys/compat/linux linux_ioctl.c linux_ioctl.h Log: Deal with a few issues that cropped up following the recent changes to the code for translating socket and private ioctls: - Only perform socket ioctl translation if the file descriptor is a socket. - Treat socket ioctls on non-sockets specially, and for now assume that these are directed at a tap/vmnet device, so translate the ioctl numbers as appropriate (the way if_tap abuses some socket ioctls to pass non-ifreq data is utterly bogus, but this is how VMware on FreeBSD has always "worked"; I will deal with this later). - Add (untested) support for translating SIOCSIFADDR. - In all cases where we fail to translate an ioctl, return ENOIOCTL so that other handlers have a chance to do the translation. This should fix the "/dev/vmnet1: Invalid argument" errors that users of VMware were experiencing, though I have only verified this on RELENG_4. Submitted by: des (mostly) MFC after: 3 days Revision Changes Path 1.76 +69 -14 src/sys/compat/linux/linux_ioctl.c 1.12 +1 -0 src/sys/compat/linux/linux_ioctl.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111191543.fAJFhs205300>