}
uci_to_blob(&b, s, &interface_attr_list);
- iface = calloc(1, sizeof(*iface));
+
+ iface = interface_alloc(s->e.name, b.head);
if (!iface)
return;
- interface_init(iface, s->e.name, b.head);
-
if (iface->proto_handler && iface->proto_handler->config_params)
uci_to_blob(&b, s, iface->proto_handler->config_params);
devtype = &bridge_device_type;
else if (!strcmp(type, "tunnel"))
devtype = &tunnel_device_type;
+ else if (!strcmp(type, "macvlan"))
+ devtype = &macvlan_device_type;
}
if (!devtype)