diff options
author | ru <ru@FreeBSD.org> | 2005-11-11 12:32:49 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-11-11 12:32:49 +0000 |
commit | 56c190d2e15d2e956bfdb9c00872e9a751a6e2fb (patch) | |
tree | d5d6bb61d59f857b1bdf2aa754f862345966f5c3 /sys | |
parent | ec1697067958cd5395dc4db2ef0cb1ce54dc746e (diff) | |
download | FreeBSD-src-56c190d2e15d2e956bfdb9c00872e9a751a6e2fb.zip FreeBSD-src-56c190d2e15d2e956bfdb9c00872e9a751a6e2fb.tar.gz |
Use the more appropriate ifnet_byindex() instead of ifaddr_byindex().
Diffstat (limited to 'sys')
-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: |