projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add support for calls to a hotplug script on interface state changes
[project/netifd.git]
/
interface.c
diff --git
a/interface.c
b/interface.c
index
f7ec520
..
3820050
100644
(file)
--- a/
interface.c
+++ b/
interface.c
@@
-78,7
+78,7
@@
void interface_add_error(struct interface *iface, const char *subsystem,
static void
interface_event(struct interface *iface, enum interface_event ev)
{
static void
interface_event(struct interface *iface, enum interface_event ev)
{
- /* TODO */
+ interface_queue_event(iface, ev);
}
static void
}
static void
@@
-282,6
+282,7
@@
interface_init(struct interface *iface, const char *name,
strncpy(iface->name, name, sizeof(iface->name) - 1);
INIT_LIST_HEAD(&iface->errors);
strncpy(iface->name, name, sizeof(iface->name) - 1);
INIT_LIST_HEAD(&iface->errors);
+ INIT_LIST_HEAD(&iface->hotplug_list);
iface->main_dev.cb = interface_cb;
iface->l3_dev = &iface->main_dev;
iface->main_dev.cb = interface_cb;
iface->l3_dev = &iface->main_dev;