diff options
Diffstat (limited to 'sys/net/if_mib.c')
-rw-r--r-- | sys/net/if_mib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_mib.c b/sys/net/if_mib.c index dc2b8e1..8c472c1 100644 --- a/sys/net/if_mib.c +++ b/sys/net/if_mib.c @@ -34,6 +34,7 @@ #include <sys/kernel.h> #include <sys/socket.h> #include <sys/sysctl.h> +#include <sys/vimage.h> #include <net/if.h> #include <net/if_mib.h> @@ -81,7 +82,7 @@ sysctl_ifdata(SYSCTL_HANDLER_ARGS) /* XXX bad syntax! */ if (namelen != 2) return EINVAL; - if (name[0] <= 0 || name[0] > if_index || + if (name[0] <= 0 || name[0] > V_if_index || ifnet_byindex(name[0]) == NULL) return ENOENT; |