add a new event for interface reload
authorFelix Fietkau <nbd@openwrt.org>
Fri, 4 May 2012 12:59:59 +0000 (14:59 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 4 May 2012 12:59:59 +0000 (14:59 +0200)
interface.c
interface.h

index acf30da219c788e3f5cc3432ba3e6a7f186efe44..892dadef30c60c4169725cbecb371c120057e59d 100644 (file)
@@ -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);
index 14aefce7c58ff77771878e8edda01b2b3c3744aa..4b4326a8b7097ce12a09a778ffac2252eaaa9e65 100644 (file)
@@ -11,6 +11,7 @@ enum interface_event {
        IFEV_DOWN,
        IFEV_UP,
        IFEV_FREE,
+       IFEV_RELOAD,
 };
 
 enum interface_state {