From: Felix Fietkau Date: Sat, 14 Apr 2012 15:11:12 +0000 (+0200) Subject: release devices only after flushing ip state X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8520d78a52e04af6396b379dfe6aa47861ca2e13;p=oweals%2Fnetifd.git release devices only after flushing ip state --- diff --git a/interface.c b/interface.c index b7c33b7..6b95a6d 100644 --- a/interface.c +++ b/interface.c @@ -142,9 +142,9 @@ mark_interface_down(struct interface *iface) { if (iface->state == IFS_UP) interface_event(iface, IFEV_DOWN); - interface_flush_state(iface); interface_ip_flush(&iface->config_ip); interface_ip_flush(&iface->proto_ip); + interface_flush_state(iface); iface->state = IFS_DOWN; }