diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-13 15:11:32 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-13 15:11:32 +0200 |
commit | 05c1f3b0c2058a579ca1a6e2b06329b8c814e5bd (patch) | |
tree | e54c1194e9613e54bd7d7183eaff21cbb42effaa /interface-ip.c | |
parent | 2ac630138173e111e16b9c544d9da53f3af97f2e (diff) |
proto-shell: fix updating settings, only issue ifup event after configuration has been applied
Diffstat (limited to 'interface-ip.c')
-rw-r--r-- | interface-ip.c | 15 |
1 files changed, 15 insertions, 0 deletions
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, |