summaryrefslogtreecommitdiffhomepage
path: root/interface.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-19 22:04:03 +0100
committerFelix Fietkau <nbd@openwrt.org>2012-03-19 22:04:03 +0100
commit75baeca6f817b161f522a9961bfe5c3718397189 (patch)
treebe038d439c83b33e88450aa3561f6ad55eb375ca /interface.c
parent49bf4946296b22f7c26594ac310879d6059344d4 (diff)
properly flush routes and l3 devices when tearing down interfaces
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/interface.c b/interface.c
index 4d9aa8a..4ad89f5 100644
--- a/interface.c
+++ b/interface.c
@@ -120,6 +120,8 @@ __interface_set_down(struct interface *iface, bool force)
if (iface->state == IFS_UP)
interface_event(iface, IFEV_DOWN);
iface->state = IFS_TEARDOWN;
+ interface_ip_flush(&iface->config_ip);
+ interface_ip_flush(&iface->proto_ip);
interface_proto_event(iface->proto, PROTO_CMD_TEARDOWN, force);
if (force)
interface_flush_state(iface);