summaryrefslogtreecommitdiffstats
path: root/net/ipv6/addrconf.c
diff options
context:
space:
mode:
authorHiroyuki YAMAMORI <h-yamamo@db3.so-net.ne.jp>2005-12-23 11:24:05 -0800
committerDavid S. Miller <davem@davemloft.net>2005-12-23 11:24:05 -0800
commit291d809ba5c8d4d6d8812e3f185bdf57d539f594 (patch)
tree41fe805546ca4e90fa68cdc130938a48675d4182 /net/ipv6/addrconf.c
parent3dd3bf83574e38578fc9741c0e23e4fa7f7ff96e (diff)
downloadlinux-291d809ba5c8d4d6d8812e3f185bdf57d539f594.tar.bz2
[IPV6]: Fix Temporary Address Generation
From: Hiroyuki YAMAMORI <h-yamamo@db3.so-net.ne.jp> 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 <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r--net/ipv6/addrconf.c3
1 files changed, 3 insertions, 0 deletions
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);