diff options
| -rw-r--r-- | sys/alpha/osf1/osf1_ioctl.c | 2 | ||||
| -rw-r--r-- | sys/compat/linux/linux_ioctl.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/alpha/osf1/osf1_ioctl.c b/sys/alpha/osf1/osf1_ioctl.c index 5d8916c8e3d5..1005a7291c1b 100644 --- a/sys/alpha/osf1/osf1_ioctl.c +++ b/sys/alpha/osf1/osf1_ioctl.c @@ -202,7 +202,7 @@ osf1_ioctl_i(p, uap, cmd, dir, len) * structure, as DU interface names are all different. */ for (ifn = 0; ifn < if_index; ifn++) { - ifp = ifnet_byindex(ifn); + ifp = ifnet_byindex(ifn + 1); /* Only look at ether interfaces, exclude alteon nics * because osf/1 doesn't know about most of them. */ diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index ab80494e919c..73d53901cb22 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -1385,7 +1385,7 @@ linux_ioctl_socket(struct thread *td, struct linux_ioctl_args *args) * structure, as Linux interface names are all different. */ for (ifn = 0; ifn < if_index; ifn++) { - ifp = ifnet_byindex(ifn); + ifp = ifnet_byindex(ifn + 1); if (ifp->if_type == IFT_ETHER) { ifa = TAILQ_FIRST(&ifp->if_addrhead); while (ifa) { |
