Message ID | 4CA35084.8010503@hp.com |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
From: Brian Haley <brian.haley@hp.com> Date: Wed, 29 Sep 2010 10:43:16 -0400 > From what I have found, this is fixing the case where we've changed > use_tempaddr to 1 on an interface that already has a "stable" IPv6 > prefix. In that case you'll never add a temporary address: We should have enough information to instantiate the temporary address when the syscal value is enabled. So I would prefer if we fixed it that way. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 8c88340..fb238d6 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -1925,7 +1925,8 @@ ok: update_lft = create = 1; ifp->cstamp = jiffies; addrconf_dad_start(ifp, RTF_ADDRCONF|RTF_PREFIX_RT); - } + } else if (list_empty(&in6_dev->tempaddr_list) && valid_lft) + create = 1; /* use_tempaddr could have changed */ if (ifp) { int flags;