diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-13 15:13:22 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-13 15:13:22 +0200 |
commit | 2c4b334b450b6587a5c941f40ff484c2a79429af (patch) | |
tree | a0092295ee5978bbc917ace0066f6a52d146f158 /interface.c | |
parent | 05c1f3b0c2058a579ca1a6e2b06329b8c814e5bd (diff) |
clean dns list if an interface is marked as down
Diffstat (limited to 'interface.c')
-rw-r--r-- | interface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/interface.c b/interface.c index 514b4d5..0a85e6f 100644 --- a/interface.c +++ b/interface.c @@ -85,6 +85,7 @@ interface_event(struct interface *iface, enum interface_event ev) static void mark_interface_down(struct interface *iface) { + interface_clear_dns(iface); vlist_flush_all(&iface->proto_addr); vlist_flush_all(&iface->proto_route); if (iface->main_dev.dev) |