X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=interface-ip.h;h=92667278096da88f4c8f41b4ea03f807c89a0307;hp=2f5cf855665c023270d0914c272bf52083f0df33;hb=4bfa9194d12830e2545e3bb0e71a7c200b744107;hpb=818abd9f2f42c36a0f91ff6d29a9a635398216e0 diff --git a/interface-ip.h b/interface-ip.h index 2f5cf85..9266727 100644 --- a/interface-ip.h +++ b/interface-ip.h @@ -17,8 +17,7 @@ union if_addr { }; struct device_addr { - struct list_head list; - void *ctx; + struct vlist_node node; enum device_addr_flags flags; @@ -27,22 +26,16 @@ struct device_addr { }; struct device_route { - struct list_head list; - void *ctx; + struct vlist_node node; enum device_addr_flags flags; + bool keep; unsigned int mask; union if_addr addr; union if_addr nexthop; }; -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_ip_init(struct interface *iface); #endif