diff options
-rw-r--r-- | sys/net/if_mib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_mib.c b/sys/net/if_mib.c index d809354..c061e7f 100644 --- a/sys/net/if_mib.c +++ b/sys/net/if_mib.c @@ -80,10 +80,10 @@ sysctl_ifdata(SYSCTL_HANDLER_ARGS) /* XXX bad syntax! */ return EINVAL; if (name[0] <= 0 || name[0] > if_index || - ifaddr_byindex(name[0]) == NULL) + ifnet_byindex(name[0]) == NULL) return ENOENT; - ifp = ifaddr_byindex(name[0])->ifa_ifp; + ifp = ifnet_byindex(name[0]); switch(name[1]) { default: |