Don't loose routes in managed PD
authorSteven Barth <steven@midlink.org>
Wed, 23 Jul 2014 21:15:28 +0000 (23:15 +0200)
committerSteven Barth <steven@midlink.org>
Wed, 23 Jul 2014 21:15:28 +0000 (23:15 +0200)
src/dhcpv6-ia.c

index fe47130..610bca3 100644 (file)
@@ -622,7 +622,7 @@ static void update(struct interface *iface)
        if (change) {
                struct dhcpv6_assignment *c;
                list_for_each_entry(c, &iface->ia_assignments, head)
-                       if (c != border)
+                       if (c != border && !iface->managed)
                                apply_lease(iface, c, false);
        }