summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-05-04 14:59:59 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-05-04 14:59:59 +0200
commit0942c9368654ee1a0518bbeaf291a51852c11543 (patch)
tree37d9bbce057d706d2c42fec61c74c23a25e45912
parent26b5b29a97c2af1ab9571cc0ff198c76e784daf4 (diff)
downloadnetifd-0942c9368654ee1a0518bbeaf291a51852c11543.tar.gz
add a new event for interface reload
-rw-r--r--interface.c1
-rw-r--r--interface.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/interface.c b/interface.c
index acf30da..892dade 100644
--- a/interface.c
+++ b/interface.c
@@ -276,6 +276,7 @@ interface_do_free(struct interface *iface)
static void
interface_do_reload(struct interface *iface)
{
+ interface_event(iface, IFEV_RELOAD);
interface_cleanup(iface, true);
proto_init_interface(iface, iface->config);
interface_claim_device(iface);
diff --git a/interface.h b/interface.h
index 14aefce..4b4326a 100644
--- a/interface.h
+++ b/interface.h
@@ -11,6 +11,7 @@ enum interface_event {
IFEV_DOWN,
IFEV_UP,
IFEV_FREE,
+ IFEV_RELOAD,
};
enum interface_state {