]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[IPV6]: Fix Temporary Address Generation
authorHiroyuki YAMAMORI <h-yamamo@db3.so-net.ne.jp>
Fri, 23 Dec 2005 19:24:05 +0000 (11:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Dec 2005 19:24:05 +0000 (11:24 -0800)
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>
net/ipv6/addrconf.c

index d805241e439cf960c5233e801db26412069e77d5..2a6439e3c91c432eb787fbf8ccf010fdfef00d7e 100644 (file)
@@ -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);