netifd: Check interface state only when main device is set during interface_change_config
[project/netifd.git] / interface.h
index 1004bdd..6cfe264 100644 (file)
@@ -41,6 +41,13 @@ enum interface_config_state {
        IFC_REMOVE
 };
 
+enum interface_update_flags {
+       IUF_ADDRESS     = (1 << 0),
+       IUF_ROUTE       = (1 << 1),
+       IUF_PREFIX      = (1 << 2),
+       IUF_DATA        = (1 << 3),
+};
+
 struct interface_error {
        struct list_head list;
 
@@ -97,11 +104,13 @@ struct interface {
        bool device_config;
        bool enabled;
        bool link_state;
+       bool force_link;
        bool dynamic;
 
        time_t start_time;
        enum interface_state state;
        enum interface_config_state config_state;
+       enum interface_update_flags updated;
 
        struct list_head users;