summaryrefslogtreecommitdiffstats
path: root/sys/net/if.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 0bc0329..0e5821e 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -252,7 +252,7 @@ netioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *td
/* only support interface specific ioctls */
if (IOCGROUP(cmd) != 'i')
return (EOPNOTSUPP);
- idx = minor(dev);
+ idx = dev2unit(dev);
if (idx == 0) {
/*
* special network device, not interface.
@@ -291,7 +291,7 @@ netkqfilter(struct cdev *dev, struct knote *kn)
return (EINVAL);
}
- idx = minor(dev);
+ idx = dev2unit(dev);
if (idx == 0) {
klist = &V_ifklist;
} else {
OpenPOWER on IntegriCloud