projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
interface: add new "ifup-failed" hotplug event
[project/netifd.git]
/
interface-event.c
diff --git
a/interface-event.c
b/interface-event.c
index 4976c2cf032d6b3bc25069f03398aefd454f3d50..86e8f5488da8626d54a61a9efee24e0366b10433 100644
(file)
--- a/
interface-event.c
+++ b/
interface-event.c
@@
-33,6
+33,7
@@
static struct uloop_process task = {
static const char * const eventnames[] = {
[IFEV_DOWN] = "ifdown",
[IFEV_UP] = "ifup",
static const char * const eventnames[] = {
[IFEV_DOWN] = "ifdown",
[IFEV_UP] = "ifup",
+ [IFEV_UP_FAILED] = "ifup-failed",
[IFEV_UPDATE] = "ifupdate",
[IFEV_FREE] = "free",
[IFEV_RELOAD] = "reload",
[IFEV_UPDATE] = "ifupdate",
[IFEV_FREE] = "free",
[IFEV_RELOAD] = "reload",
@@
-191,6
+192,7
@@
static void interface_event_cb(struct interface_user *dep, struct interface *ifa
switch (ev) {
case IFEV_LINK_UP:
case IFEV_UP:
switch (ev) {
case IFEV_LINK_UP:
case IFEV_UP:
+ case IFEV_UP_FAILED:
case IFEV_UPDATE:
case IFEV_DOWN:
interface_queue_event(iface, ev);
case IFEV_UPDATE:
case IFEV_DOWN:
interface_queue_event(iface, ev);