Make if_tun's clone create SI_CHEAPCLONE devices.

This commit is contained in:
Poul-Henning Kamp 2001-05-25 13:32:53 +00:00
parent 9210280057
commit d951f85b28

View File

@ -107,6 +107,7 @@ tun_clone(arg, name, namelen, dev)
return;
*dev = make_dev(&tun_cdevsw, unit2minor(u),
UID_ROOT, GID_WHEEL, 0600, "tun%d", u);
(*dev)->si_flags |= SI_CHEAPCLONE;
}
static int