X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=interface.h;h=9a9b211fb9f8098a047eb0c87f4d9b54b396c6b7;hp=1e8ef44bccfd1eb776d68fc473da4cbfd7dc8fa4;hb=367f5edba8abe7e03890ceb00c00617d64d7bf73;hpb=fd50535d7d4060d3cb80f1c317a087507ecfdf2b diff --git a/interface.h b/interface.h index 1e8ef44..9a9b211 100644 --- a/interface.h +++ b/interface.h @@ -19,6 +19,12 @@ enum interface_state { IFS_DOWN, }; +enum interface_config_state { + IFC_NORMAL, + IFC_RELOAD, + IFC_REMOVE +}; + struct interface_error { struct list_head list; @@ -34,11 +40,14 @@ struct interface { struct vlist_node node; char name[IFNAMSIZ]; + const char *ifname; bool available; bool autostart; + bool config_autostart; enum interface_state state; + enum interface_config_state config_state; /* main interface that the interface is bound to */ struct device_user main_dev; @@ -58,9 +67,11 @@ struct interface { /* errors/warnings while trying to bring up the interface */ struct list_head errors; + struct uloop_timeout remove_timer; struct ubus_object ubus; }; +extern struct vlist_tree interfaces; extern const struct config_param_list interface_attr_list; void interface_init(struct interface *iface, const char *name,