diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2005-11-11 12:32:49 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2005-11-11 12:32:49 +0000 |
commit | f0a2ef4889488b69c58bef8d05be74e4c985bd6c (patch) | |
tree | d5d6bb61d59f857b1bdf2aa754f862345966f5c3 /sys/net/if_mib.c | |
parent | f5071cacb179ee84e45932530401a210b341a6c9 (diff) | |
download | src-f0a2ef4889488b69c58bef8d05be74e4c985bd6c.tar.gz src-f0a2ef4889488b69c58bef8d05be74e4c985bd6c.zip |
Use the more appropriate ifnet_byindex() instead of ifaddr_byindex().
Notes
Notes:
svn path=/head/; revision=152312
Diffstat (limited to 'sys/net/if_mib.c')
-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 d809354cb787..c061e7f765cf 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: |