X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=interface.h;h=0f2eb85c191dcdbff6891b3f67177287ec08383c;hb=df13b3ade3f366446033214b3a85228005c014ea;hp=9d6863551e92986b3db88bec3eec8ee3e085594b;hpb=b567e47574a6f4179bdce88e65aaabb1a97cfb76;p=project%2Fnetifd.git diff --git a/interface.h b/interface.h index 9d68635..0f2eb85 100644 --- a/interface.h +++ b/interface.h @@ -46,7 +46,10 @@ struct interface { /* interface that layer 3 communication will go through */ struct device_user *l3_iface; + struct config_state config; + /* primary protocol state */ + const struct proto_handler *proto_handler; struct interface_proto_state *proto; struct list_head address, routes; @@ -59,9 +62,9 @@ struct interface { extern const struct config_param_list interface_attr_list; -struct interface *get_interface(const char *name); -struct interface *alloc_interface(const char *name, struct uci_section *s, struct blob_attr *attr); -void free_interface(struct interface *iface); +struct interface *interface_get(const char *name); +struct interface *interface_alloc(const char *name, struct blob_attr *attr); +void interface_free(struct interface *iface); void interface_set_proto_state(struct interface *iface, struct interface_proto_state *state); @@ -74,16 +77,6 @@ void interface_remove_link(struct interface *iface, struct device *llif); void interface_add_error(struct interface *iface, const char *subsystem, const char *code, const char **data, int n_data); -int interface_attach_bridge(struct interface *iface, struct uci_section *s); - -int interface_add_address(struct interface *iface, struct device_addr *addr); -void interface_del_address(struct interface *iface, struct device_addr *addr); -void interface_del_ctx_addr(struct interface *iface, void *ctx); - -int interface_add_route(struct interface *iface, struct device_route *route); -void interface_del_route(struct interface *iface, struct device_route *route); -void interface_del_all_routes(struct interface *iface); - void interface_start_pending(void); #endif