Skip to content

Commit 7ffbcec

Browse files
committed
ipv6: Remove optimistic DAD flag test in ipv6_add_addr()
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>
1 parent d79aec8 commit 7ffbcec

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

‎net/ipv6/addrconf.c‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -650,16 +650,6 @@ ipv6_add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int pfxlen,
650650

651651
ifa->rt = rt;
652652

653-
/*
654-
* part one of RFC 4429, section 3.3
655-
* We should not configure an address as
656-
* optimistic if we do not yet know the link
657-
* layer address of our nexhop router
658-
*/
659-
660-
if (dst_get_neighbour_noref_raw(&rt->dst) == NULL)
661-
ifa->flags &= ~IFA_F_OPTIMISTIC;
662-
663653
ifa->idev = idev;
664654
in6_dev_hold(idev);
665655
/* For caller */

0 commit comments

Comments
 (0)