X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=interface.h;h=9a7bb3ddbbe4e632ad829498793d164ae3761f5c;hp=4b7de5997d3055e1e85938230d3017f0356fa433;hb=02021e2069d0ee315b0ff263b6c010bef63b879c;hpb=381f47c5af62cec173528f5f539558d7a18b6d30 diff --git a/interface.h b/interface.h index 4b7de59..9a7bb3d 100644 --- a/interface.h +++ b/interface.h @@ -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; @@ -95,11 +102,14 @@ struct interface { bool autostart; bool config_autostart; bool device_config; + bool enabled; + bool link_state; 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;