Date: Mon, 3 Dec 2001 19:55:10 -0800 (PST) From: Marcel Moolenaar <marcel@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/compat/linux linux_ioctl.c Message-ID: <200112040355.fB43tAn26435@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <gjohnson@srrc.ars.usda.gov> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112040355.fB43tAn26435>