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:
@@ -522,8 +522,9 @@ static void process_route(private_kernel_netlink_net_t *this, struct nlmsghdr *h
|
|||||||
u_int32_t rta_oif = 0;
|
u_int32_t rta_oif = 0;
|
||||||
host_t *host = NULL;
|
host_t *host = NULL;
|
||||||
|
|
||||||
/* ignore routes added by us */
|
/* ignore routes added by us or in the local routing table (local addrs) */
|
||||||
if (msg->rtm_table && msg->rtm_table == this->routing_table)
|
if (msg->rtm_table && (msg->rtm_table == this->routing_table ||
|
||||||
|
msg->rtm_table == RT_TABLE_LOCAL))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user