summaryrefslogtreecommitdiffhomepage
path: root/interface.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-05-04 12:23:41 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-05-04 12:28:13 +0200
commit23bb091077348d3b87b9900ae3ff923cdd25a662 (patch)
treef7449b4495227ee5f190cd42d8b5ac92b1ed088b /interface.c
parent46d52638f04c471a0e86d07ccae6a188f1a05ef5 (diff)
add a ubus interface to dynamically create host routes to a particular ip address, returns the interface that the route goes through
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/interface.c b/interface.c
index 10a9174..9301628 100644
--- a/interface.c
+++ b/interface.c
@@ -352,8 +352,7 @@ interface_init(struct interface *iface, const char *name,
INIT_LIST_HEAD(&iface->errors);
INIT_LIST_HEAD(&iface->users);
INIT_LIST_HEAD(&iface->hotplug_list);
- interface_ip_init(&iface->proto_ip, iface);
- interface_ip_init(&iface->config_ip, iface);
+ interface_ip_init(iface);
avl_init(&iface->data, avl_strcmp, false, NULL);
iface->config_ip.enabled = false;