diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-05-02 21:32:37 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-05-02 21:32:37 +0200 |
commit | 17aab88b83a0e50ab31f18beec78ab07ce864883 (patch) | |
tree | 9d62ad75990437f71c08d2496eacc5f782999eff /interface.c | |
parent | 702c681db04574dfbd0955e60e4b4ba555dc077c (diff) |
move address handling to common code
Diffstat (limited to 'interface.c')
-rw-r--r-- | interface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/interface.c b/interface.c index 0576166..88cf682 100644 --- a/interface.c +++ b/interface.c @@ -189,6 +189,8 @@ alloc_interface(const char *name, struct uci_section *s) strncpy(iface->name, name, sizeof(iface->name) - 1); list_add(&iface->list, &interfaces); INIT_LIST_HEAD(&iface->errors); + INIT_LIST_HEAD(&iface->address); + INIT_LIST_HEAD(&iface->routes); proto_attach_interface(iface, s); |