[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150521.232405.2190506424761589353.davem@davemloft.net>
Date: Thu, 21 May 2015 23:24:05 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: fw@...len.de
Cc: netdev@...r.kernel.org, hannes@...essinduktion.org
Subject: Re: [PATCH -next] ipv6: reject locally assigned nexthop addresses
From: Florian Westphal <fw@...len.de>
Date: Thu, 21 May 2015 00:25:41 +0200
> ip -6 addr add dead::1/128 dev eth0
> sleep 5
> ip -6 route add default via dead::1/128
> -> fails
> ip -6 addr add dead::1/128 dev eth0
> ip -6 route add default via dead::1/128
> -> succeeds
>
> reason is that if (nonsensensical) route above is added,
> dead::1 is still subject to DAD, so the route lookup will
> pick eth0 as outdev due to the prefix route that is added before
> DAD work is started.
>
> Add explicit test that checks if nexthop gateway is a local address.
>
> Link: https://bugzilla.redhat.com/show_bug.cgi?id=1167969
> Signed-off-by: Florian Westphal <fw@...len.de>
Applied to net-next, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists