summaryrefslogtreecommitdiff
path: root/interface.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-08-31 15:06:42 +0200
committerFelix Fietkau <nbd@openwrt.org>2014-08-31 15:06:48 +0200
commitb2dcb02570939d98b92c7c55db1c328693a5d52a (patch)
tree9797e0dbf60151ba0e4e98f57b3be532c537acf7 /interface.c
parentb8e21616bcb422dac93ba6a3e5f4b4e78b4b30db (diff)
downloadnetifd-b2dcb02570939d98b92c7c55db1c328693a5d52a.tar.gz
interface: call proto teardown before marking the interface as down
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface.c b/interface.c
index bebc30b..35f20b0 100644
--- a/interface.c
+++ b/interface.c
@@ -272,8 +272,8 @@ interface_check_state(struct interface *iface)
switch (iface->state) {
case IFS_UP:
if (!iface->enabled || !link_state) {
- mark_interface_down(iface);
interface_proto_event(iface->proto, PROTO_CMD_TEARDOWN, false);
+ mark_interface_down(iface);
}
break;
case IFS_DOWN: