vldev = calloc(1, sizeof(*vldev));
snprintf(vldev->dev.ifname, IFNAMSIZ, "%s.%d", dev->ifname, id);
- device_init(&vldev->dev, &vlan_type, NULL);
+ device_init_virtual(&vldev->dev, &vlan_type, NULL);
vldev->dev.default_config = true;
vldev->set_state = vldev->dev.set_state;