Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ffbcecb authored by David Miller's avatar David Miller Committed by David S. Miller
Browse files

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: default avatarDavid S. Miller <davem@davemloft.net>
Acked-By: default avatarNeil Horman <nhorman@tuxdriver.com>
parent d79aec83
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -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 */