projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26b5b29
)
add a new event for interface reload
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 4 May 2012 12:59:59 +0000
(14:59 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 4 May 2012 12:59:59 +0000
(14:59 +0200)
interface.c
patch
|
blob
|
history
interface.h
patch
|
blob
|
history
diff --git
a/interface.c
b/interface.c
index acf30da219c788e3f5cc3432ba3e6a7f186efe44..892dadef30c60c4169725cbecb371c120057e59d 100644
(file)
--- 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 14aefce7c58ff77771878e8edda01b2b3c3744aa..4b4326a8b7097ce12a09a778ffac2252eaaa9e65 100644
(file)
--- a/
interface.h
+++ b/
interface.h
@@
-11,6
+11,7
@@
enum interface_event {
IFEV_DOWN,
IFEV_UP,
IFEV_FREE,
+ IFEV_RELOAD,
};
enum interface_state {