]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't delete the subnet route if we don't own IPv6RA routes.
authorRoy Marples <roy@marples.name>
Sun, 9 Jun 2013 10:57:16 +0000 (10:57 +0000)
committerRoy Marples <roy@marples.name>
Sun, 9 Jun 2013 10:57:16 +0000 (10:57 +0000)
ipv6.c

diff --git a/ipv6.c b/ipv6.c
index e2eeb2c7082066013da313d69141ce2e03281ff7..f4c1d4796509802daef727ef1ea13139961495cf 100644 (file)
--- a/ipv6.c
+++ b/ipv6.c
@@ -419,7 +419,8 @@ ipv6_addaddr(struct ipv6_addr *ap)
        ap->flags |= IPV6_AF_ADDED;
        if (ap->delegating_iface)
                ap->flags |= IPV6_AF_DELEGATED;
-       if (ipv6_removesubnet(ap->iface, ap) == -1)
+       if (ap->iface->options->options & DHCPCD_IPV6RA_OWN &&
+           ipv6_removesubnet(ap->iface, ap) == -1)
                syslog(LOG_ERR,"ipv6_removesubnet %m");
        if (ap->prefix_pltime == ND6_INFINITE_LIFETIME &&
            ap->prefix_vltime == ND6_INFINITE_LIFETIME)