diff --git a/sys/net/if_tap.c b/sys/net/if_tap.c index d6cd2592b2d4..5c8da74fd0ca 100644 --- a/sys/net/if_tap.c +++ b/sys/net/if_tap.c @@ -186,7 +186,7 @@ tap_clone_create(struct if_clone *ifc, int unit, caddr_t params) /* Find any existing device, or allocate new unit number. */ i = clone_create(&tapclones, &tap_cdevsw, &unit, &dev, 0); if (i) { - dev = make_dev(&tap_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, + dev = make_dev(&tap_cdevsw, unit, UID_ROOT, GID_WHEEL, 0600, "%s%d", tapname, unit); }