when an interface goes down we need to flush *all* link entries
with the local IP address and not just the first one.
From hannes, trunk(
71c35e16799d)
changes_neighborhood = true;
}
+/**
+ * Delete all link entries matching a given interface address.
+ */
void
olsr_delete_link_entry_by_ip(const union olsr_ip_addr *int_addr)
{
OLSR_FOR_ALL_LINK_ENTRIES(link) {
if (ipequal(int_addr, &link->local_iface_addr)) {
olsr_delete_link_entry(link);
- break;
}
}
OLSR_FOR_ALL_LINK_ENTRIES_END(link);