X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=interface.h;h=9a9b211fb9f8098a047eb0c87f4d9b54b396c6b7;hp=1e8ef44bccfd1eb776d68fc473da4cbfd7dc8fa4;hb=b9f116ece5ca85c38105a8e33f0d9cc818a05694;hpb=3c024e7b3170bd2d3869a404b08bc20345bc6f81 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,