Add ubus function to create nested interfaces
[project/netifd.git] / interface.h
index 0a947b4..e4d92aa 100644 (file)
@@ -93,6 +93,7 @@ struct interface {
        bool autostart;
        bool config_autostart;
        bool device_config;
+       bool dynamic;
 
        time_t start_time;
        enum interface_state state;
@@ -143,7 +144,7 @@ extern struct vlist_tree interfaces;
 extern const struct uci_blob_param_list interface_attr_list;
 
 void interface_init(struct interface *iface, const char *name,
-                   struct blob_attr *config);
+                   struct blob_attr *config, bool dynamic);
 
 void interface_add(struct interface *iface, struct blob_attr *config);
 bool interface_add_alias(struct interface *iface, struct blob_attr *config);