+
+ if (node_new) {
+ route = container_of(node_new, struct device_route, node);
+ if (!(route->flags & DEVADDR_EXTERNAL))
+ system_add_route(dev, route);
+ }
+}
+
+void
+interface_ip_init(struct interface *iface)
+{
+ vlist_init(&iface->proto_route, route_cmp, interface_update_proto_route,
+ struct device_route, node, mask);
+ vlist_init(&iface->proto_addr, addr_cmp, interface_update_proto_addr,
+ struct device_addr, node, mask);