- struct interface_addr *addr, *tmp;
-
- list_for_each_entry_safe(addr, tmp, &iface->address, list) {
- if (addr->ctx != ctx)
- continue;
-
- interface_del_address(iface, addr);
- }
+ vlist_init(&iface->proto_route, interface_update_proto_route,
+ struct device_route, node, mask, addr);
+ vlist_init(&iface->proto_addr, interface_update_proto_addr,
+ struct device_addr, node, mask, addr);