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