kernel-pfroute: Trigger a roam event if a new interface appears
authorTobias Brunner <tobias@strongswan.org>
Wed, 10 Jul 2013 09:57:31 +0000 (11:57 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 17 Jul 2013 15:45:17 +0000 (17:45 +0200)
src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c

index 13da679..88ccb97 100644 (file)
@@ -569,6 +569,10 @@ static void process_link(private_kernel_pfroute_net_t *this,
                                                                                hydra->kernel_interface, iface->ifname);
                        repopulate_iface(this, iface);
                        this->ifaces->insert_last(this->ifaces, iface);
+                       if (iface->usable)
+                       {
+                               roam = TRUE;
+                       }
                }
                else
                {