From owner-cvs-all Mon Dec 3 19:55:14 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 3F60237B417; Mon, 3 Dec 2001 19:55:10 -0800 (PST) Received: (from marcel@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fB43tAn26435; Mon, 3 Dec 2001 19:55:10 -0800 (PST) (envelope-from marcel) Message-Id: <200112040355.fB43tAn26435@freefall.freebsd.org> From: Marcel Moolenaar Date: Mon, 3 Dec 2001 19:55:10 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/compat/linux linux_ioctl.c 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 marcel 2001/12/03 19:55:10 PST Modified files: sys/compat/linux linux_ioctl.c Log: When translating the interface name when "eth?" is given, do not use the internal index number as the unit number to compare with. The first ethernet interface in Linux is called "eth0", whereas our internal index starts wth 1 and is not unique to ethernet interfaces (lo0 has index 1 for example). Instead, use a function- local index number that starts with 0 and is incremented only for ethernet interfaces. This way the unit number will match the n-th ethernet interface in the system, which is exactly what it means in Linux. Tested by: Glenn Johnson MFC after: 3 days Revision Changes Path 1.77 +9 -3 src/sys/compat/linux/linux_ioctl.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message