ignore routing events for our own routes
authorMartin Willi <martin@strongswan.org>
Wed, 8 Oct 2008 08:29:49 +0000 (08:29 -0000)
committerMartin Willi <martin@strongswan.org>
Wed, 8 Oct 2008 08:29:49 +0000 (08:29 -0000)
src/charon/plugins/kernel_netlink/kernel_netlink_net.c

index bef1362..0a94a8b 100644 (file)
@@ -449,6 +449,12 @@ static void process_route(private_kernel_netlink_net_t *this, struct nlmsghdr *h
        size_t rtasize = RTM_PAYLOAD(hdr);
        host_t *host = NULL;
        
+       /* ignore routes added by us */
+       if (msg->rtm_table && msg->rtm_table == this->routing_table)
+       {
+               return;
+       }
+       
        while (RTA_OK(rta, rtasize))
        {
                switch (rta->rta_type)