From 26b5b29a97c2af1ab9571cc0ff198c76e784daf4 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 4 May 2012 14:56:15 +0200 Subject: [PATCH] add a new event for interface free --- interface.c | 1 + interface.h | 1 + 2 files changed, 2 insertions(+) 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 { -- 2.30.2