diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-05-04 14:56:15 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-05-04 14:56:15 +0200 |
commit | 26b5b29a97c2af1ab9571cc0ff198c76e784daf4 (patch) | |
tree | 13fed9429d9318c783356f8baf4ab01221753f1d | |
parent | 49ffd290f273417c62e395cbbcb65ab7d75cd36a (diff) |
add a new event for interface free
-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 { |