From owner-cvs-all Mon Nov 19 7:44: 1 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CC8B237B417; Mon, 19 Nov 2001 07:43:54 -0800 (PST) Received: (from iedowse@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fAJFhs205300; Mon, 19 Nov 2001 07:43:54 -0800 (PST) (envelope-from iedowse) Message-Id: <200111191543.fAJFhs205300@freefall.freebsd.org> From: Ian Dowse Date: Mon, 19 Nov 2001 07:43:54 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/compat/linux linux_ioctl.c linux_ioctl.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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