#include "interface.h"
struct uci_context *uci_ctx;
-struct uci_package *uci_network;
+static struct uci_package *uci_network;
bool config_init = false;
enum {
DPRINTF("Create interface '%s'\n", s->e.name);
- iface = alloc_interface(s->e.name);
+ iface = alloc_interface(s->e.name, s);
if (!iface)
return;
if (!strcmp(s->type, "interface"))
config_parse_interface(s);
}
+ cleanup_devices();
config_init = false;
start_pending_interfaces();