netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: fw@strlen.de
Cc: netdev@vger.kernel.org, hannes@stressinduktion.org
Subject: Re: [PATCH -next] ipv6: reject locally assigned nexthop addresses
Date: Thu, 21 May 2015 23:24:05 -0400 (EDT)	[thread overview]
Message-ID: <20150521.232405.2190506424761589353.davem@davemloft.net> (raw)
In-Reply-To: <1432160741-3588-1-git-send-email-fw@strlen.de>

From: Florian Westphal <fw@strlen.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@strlen.de>

Applied to net-next, thanks.

      parent reply	other threads:[~2015-05-22  3:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-20 22:25 [PATCH -next] ipv6: reject locally assigned nexthop addresses Florian Westphal
2015-05-20 23:55 ` Hannes Frederic Sowa
2015-05-22  3:24 ` David Miller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150521.232405.2190506424761589353.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=fw@strlen.de \
    --cc=hannes@stressinduktion.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).