From: Felix Fietkau Date: Fri, 4 May 2012 12:56:15 +0000 (+0200) Subject: add a new event for interface free X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=26b5b29a97c2af1ab9571cc0ff198c76e784daf4;p=project%2Fnetifd.git add a new event for interface free --- diff --git a/interface.c b/interface.c index 5614d39..acf30da 100644 --- a/interface.c +++ b/interface.c @@ -265,6 +265,7 @@ interface_cleanup(struct interface *iface, bool reload) static void interface_do_free(struct interface *iface) { + interface_event(iface, IFEV_FREE); interface_cleanup(iface, false); free(iface->config); netifd_ubus_remove_interface(iface); diff --git a/interface.h b/interface.h index e89db70..14aefce 100644 --- a/interface.h +++ b/interface.h @@ -10,6 +10,7 @@ struct interface_proto_state; enum interface_event { IFEV_DOWN, IFEV_UP, + IFEV_FREE, }; enum interface_state {