freebsd-dev/sys/compat
Marcel Moolenaar 53b9d88fc4 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
2001-12-04 03:55:10 +00:00
..
linprocfs o Introduce pr_mtx into struct prison, providing protection for the 2001-12-03 16:12:27 +00:00
linux When translating the interface name when "eth?" is given, do not 2001-12-04 03:55:10 +00:00
netbsd Use queue macros. 2001-01-24 00:01:42 +00:00
pecoff KSE Milestone 2 2001-09-12 08:38:13 +00:00
svr4 Give struct socket structures a ref counting interface similar to 2001-11-17 03:07:11 +00:00