X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=interface-ip.c;h=28c608ab661d0c0a18d09eb00bf753a8e192744b;hb=05c1f3b0c2058a579ca1a6e2b06329b8c814e5bd;hp=8dae80d1883189c838193b09bab33a1f05007d3e;hpb=2ac630138173e111e16b9c544d9da53f3af97f2e;p=project%2Fnetifd.git diff --git a/interface-ip.c b/interface-ip.c index 8dae80d..28c608a 100644 --- a/interface-ip.c +++ b/interface-ip.c @@ -196,6 +196,21 @@ interface_write_resolv_conf(void) } void +interface_ip_update_start(struct interface *iface) +{ + interface_clear_dns(iface); + vlist_update(&iface->proto_route); + vlist_update(&iface->proto_addr); +} + +void +interface_ip_update_complete(struct interface *iface) +{ + vlist_flush(&iface->proto_route); + vlist_flush(&iface->proto_addr); +} + +void interface_ip_init(struct interface *iface) { vlist_init(&iface->proto_route, route_cmp, interface_update_proto_route,