summaryrefslogtreecommitdiffhomepage
path: root/interface.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-05-02 22:20:30 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-05-02 22:20:30 +0200
commit85218c601b0f5895f9025910643761930c02eb1a (patch)
tree6adaf092d94f0a7be25d4d931ceeca0b4831881b /interface.c
parent17aab88b83a0e50ab31f18beec78ab07ce864883 (diff)
clear all remaining addresses on interface down
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/interface.c b/interface.c
index 88cf682..0a53151 100644
--- a/interface.c
+++ b/interface.c
@@ -64,6 +64,7 @@ interface_event(struct interface *iface, enum interface_event ev)
static void
mark_interface_down(struct interface *iface)
{
+ interface_del_ctx_addr(iface, NULL);
release_device(iface->main_dev.dev);
iface->state = IFS_DOWN;
}