ipv6: Remove optimistic DAD flag test in ipv6_add_addr()
authorDavid Miller <davem@davemloft.net>
Tue, 27 Dec 2011 09:53:05 +0000 (09:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Dec 2011 18:38:49 +0000 (13:38 -0500)
The route we have here is for the address being added to the interface,
ie. for input packet processing.

Therefore using that route to determine whether an output nexthop gateway
is known and resolved doesn't make any sense.

So, simply remove this test, it never triggered anyways.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-By: Neil Horman <nhorman@tuxdriver.com>
net/ipv6/addrconf.c

index 59a9d0e1da56c7bf83027bdf68ffc95106b7ae3e..85421cce5e1a110e3c0cb6417ee005ac0c159e62 100644 (file)
@@ -650,16 +650,6 @@ ipv6_add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int pfxlen,
 
        ifa->rt = rt;
 
-       /*
-        * part one of RFC 4429, section 3.3
-        * We should not configure an address as
-        * optimistic if we do not yet know the link
-        * layer address of our nexhop router
-        */
-
-       if (dst_get_neighbour_noref_raw(&rt->dst) == NULL)
-               ifa->flags &= ~IFA_F_OPTIMISTIC;
-
        ifa->idev = idev;
        in6_dev_hold(idev);
        /* For caller */