summaryrefslogtreecommitdiffstats
path: root/sys/net/if_mib.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-11-11 12:32:49 +0000
committerru <ru@FreeBSD.org>2005-11-11 12:32:49 +0000
commit56c190d2e15d2e956bfdb9c00872e9a751a6e2fb (patch)
treed5d6bb61d59f857b1bdf2aa754f862345966f5c3 /sys/net/if_mib.c
parentec1697067958cd5395dc4db2ef0cb1ce54dc746e (diff)
downloadFreeBSD-src-56c190d2e15d2e956bfdb9c00872e9a751a6e2fb.zip
FreeBSD-src-56c190d2e15d2e956bfdb9c00872e9a751a6e2fb.tar.gz
Use the more appropriate ifnet_byindex() instead of ifaddr_byindex().
Diffstat (limited to 'sys/net/if_mib.c')
-rw-r--r--sys/net/if_mib.c4
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:
OpenPOWER on IntegriCloud