diff options
-rw-r--r-- | interface.c | 1 | ||||
-rw-r--r-- | interface.h | 1 |
2 files changed, 2 insertions, 0 deletions
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 { |