FreeBSD/sys/net/if_tap.c
/* vmnet devices are tap devices in disguise */
vmnet devices are tap devices in disguise
vmnet devices are tap devices in disguise
static int
vmnet_clone_create(struct if_clone *ifc, int unit, caddr_t params)
{
	struct cdev *dev;
	int i;
	i = clone_create(&tapclones, &tap_cdevsw, &unit, &dev, VMNET_DEV_MASK);
	if (i) {
		dev = make_dev(&tap_cdevsw, unit | VMNET_DEV_MASK, UID_ROOT,
		    GID_WHEEL, 0600, "%s%d", vmnetname, unit);
	}
	tapcreate(dev);
	return (0);
}
static int vmnet_clone_create ( struct if_clone * ifc , int unit , caddr_t params ) { struct cdev * dev ; int i ; i = clone_create ( & tapclones , & tap_cdevsw , & unit , & dev , VMNET_DEV_MASK ) ; if ( i ) { dev = make_dev ( & tap_cdevsw , unit | VMNET_DEV_MASK , UID_ROOT , GID_WHEEL , 0600 , " " , vmnetname , unit ) ; } tapcreate ( dev ) ; return ( 0 ) ; }
vmnet devices are tap devices in disguise
vmnet devices are tap devices in disguise
/* Find any existing device, or allocate new unit number. */