From: Hiroyuki YAMAMORI Date: Fri, 23 Dec 2005 19:24:05 +0000 (-0800) Subject: [IPV6]: Fix Temporary Address Generation X-Git-Tag: v2.6.16.28-rc1~2314^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=291d809ba5c8d4d6d8812e3f185bdf57d539f594;p=karo-tx-linux.git [IPV6]: Fix Temporary Address Generation From: Hiroyuki YAMAMORI Since regen_count is stored in the public address, we need to reset it when we start renewing temporary address. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index d805241e439c..2a6439e3c91c 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -2782,6 +2782,9 @@ restart: in6_ifa_hold(ifpub); spin_unlock(&ifp->lock); read_unlock(&addrconf_hash_lock); + spin_lock(&ifpub->lock); + ifpub->regen_count = 0; + spin_unlock(&ifpub->lock); ipv6_create_tempaddr(ifpub, ifp); in6_ifa_put(ifpub); in6_ifa_put(ifp);