X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=interface.h;h=b845c9b67e021a83b8073f2c61837e791df7bfe3;hp=13761f84d1223196d28a23a432d30fc0bee520a5;hb=f8d894ad5974c29471cfef6679a819ab5a7e4ef8;hpb=da279866a33682e590428b740b4564a4b2e6f780 diff --git a/interface.h b/interface.h index 13761f8..b845c9b 100644 --- a/interface.h +++ b/interface.h @@ -23,6 +23,7 @@ struct interface_proto_state; enum interface_event { IFEV_DOWN, IFEV_UP, + IFEV_UPDATE, IFEV_FREE, IFEV_RELOAD, }; @@ -59,6 +60,7 @@ struct interface_ip_settings { bool enabled; bool no_defaultroute; bool no_dns; + bool no_delegation; struct vlist_tree addr; struct vlist_tree route; @@ -86,13 +88,14 @@ struct interface { struct list_head hotplug_list; enum interface_event hotplug_ev; - char name[IFNAMSIZ]; + const char *name; const char *ifname; bool available; bool autostart; bool config_autostart; bool device_config; + bool dynamic; time_t start_time; enum interface_state state; @@ -140,10 +143,11 @@ struct interface { extern struct vlist_tree interfaces; -extern const struct config_param_list interface_attr_list; +extern const struct uci_blob_param_list interface_attr_list; -void interface_init(struct interface *iface, const char *name, - struct blob_attr *config); +struct interface *interface_alloc(const char *name, struct blob_attr *config); + +void interface_set_dynamic(struct interface *iface); void interface_add(struct interface *iface, struct blob_attr *config); bool interface_add_alias(struct interface *iface, struct blob_attr *config);