]> err.no Git - linux-2.6/commitdiff
[IPV6] ADDRCONF: Do not verify an address with infinity lifetime
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Fri, 28 Jul 2006 09:12:11 +0000 (18:12 +0900)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 2 Aug 2006 20:38:10 +0000 (13:38 -0700)
We also do not try regenarating new temporary address corresponding to an
address with infinite preferred lifetime.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
net/ipv6/addrconf.c

index c0641887bdeb0500a604b36d7c24d350d73ec706..93a40a8ade88f66d9968c304038eefef2f7b14f8 100644 (file)
@@ -2797,12 +2797,16 @@ restart:
                                        ifp->idev->nd_parms->retrans_time / HZ;
 #endif
 
-                       if (age >= ifp->valid_lft) {
+                       if (ifp->valid_lft != INFINITY_LIFE_TIME &&
+                           age >= ifp->valid_lft) {
                                spin_unlock(&ifp->lock);
                                in6_ifa_hold(ifp);
                                read_unlock(&addrconf_hash_lock);
                                ipv6_del_addr(ifp);
                                goto restart;
+                       } else if (ifp->prefered_lft == INFINITY_LIFE_TIME) {
+                               spin_unlock(&ifp->lock);
+                               continue;
                        } else if (age >= ifp->prefered_lft) {
                                /* jiffies - ifp->tsamp > age >= ifp->prefered_lft */
                                int deprecate = 0;