Do not fire roam events based on local route changes.

These kernel events are triggered on address changes, which is
problematic when deleting virtual IP addresses.
This commit is contained in:
Tobias Brunner
2010-10-12 11:11:04 +02:00
parent 29607690a8
commit ec0c756d07
@@ -522,8 +522,9 @@ static void process_route(private_kernel_netlink_net_t *this, struct nlmsghdr *h
u_int32_t rta_oif = 0;
host_t *host = NULL;
/* ignore routes added by us */
if (msg->rtm_table && msg->rtm_table == this->routing_table)
/* ignore routes added by us or in the local routing table (local addrs) */
if (msg->rtm_table && (msg->rtm_table == this->routing_table ||
msg->rtm_table == RT_TABLE_LOCAL))
{
return;
}