X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=interface.h;h=72a00c98c41b7ff6de7bfc254076505946e4b04b;hb=a047e6bc29fb9c3e62c0835e55b9c6322ec62f05;hp=0f2eb85c191dcdbff6891b3f67177287ec08383c;hpb=df13b3ade3f366446033214b3a85228005c014ea;p=project%2Fnetifd.git diff --git a/interface.h b/interface.h index 0f2eb85..72a00c9 100644 --- a/interface.h +++ b/interface.h @@ -35,7 +35,7 @@ struct interface { char name[IFNAMSIZ]; - bool active; + bool available; bool autostart; enum interface_state state; @@ -52,7 +52,8 @@ struct interface { const struct proto_handler *proto_handler; struct interface_proto_state *proto; - struct list_head address, routes; + struct vlist_tree proto_addr; + struct vlist_tree proto_route; /* errors/warnings while trying to bring up the interface */ struct list_head errors; @@ -68,6 +69,7 @@ void interface_free(struct interface *iface); void interface_set_proto_state(struct interface *iface, struct interface_proto_state *state); +void interface_set_available(struct interface *iface, bool new_state); int interface_set_up(struct interface *iface); int interface_set_down(struct interface *iface);