From: David Miller <davem@davemloft.net>
To: dsahern@gmail.com
Cc: mmanning@vyatta.att-mail.com, netdev@vger.kernel.org,
rshearma@vyatta.att-mail.com
Subject: Re: [PATCH net-next] ipv6: Allow the l3mdev to be a loopback
Date: Wed, 19 Sep 2018 21:23:36 -0700 (PDT) [thread overview]
Message-ID: <20180919.212336.231776734640409407.davem@davemloft.net> (raw)
In-Reply-To: <bd5d267a-f419-4735-bdf1-eee2a1f7135d@gmail.com>
From: David Ahern <dsahern@gmail.com>
Date: Wed, 19 Sep 2018 10:19:05 -0700
> On 9/19/18 5:56 AM, Mike Manning wrote:
>> From: Robert Shearman <rshearma@vyatta.att-mail.com>
>>
>> There is no way currently for an IPv6 client connect using a loopback
>> address in a VRF, whereas for IPv4 the loopback address can be added:
>>
>> $ sudo ip addr add dev vrfred 127.0.0.1/8
>> $ sudo ip -6 addr add ::1/128 dev vrfred
>> RTNETLINK answers: Cannot assign requested address
>>
>> So allow ::1 to be configured on an L3 master device. In order for
>> this to be usable ip_route_output_flags needs to not consider ::1 to
>> be a link scope address (since oif == l3mdev and so it would be
>> dropped), and ipv6_rcv needs to consider the l3mdev to be a loopback
>> device so that it doesn't drop the packets.
>>
>> Signed-off-by: Robert Shearman <rshearma@vyatta.att-mail.com>
>> Signed-off-by: Mike Manning <mmanning@vyatta.att-mail.com>
>> ---
>> net/ipv6/addrconf.c | 1 +
>> net/ipv6/ip6_input.c | 3 ++-
>> net/ipv6/route.c | 3 ++-
>> 3 files changed, 5 insertions(+), 2 deletions(-)
>>
>
> Reviewed-by: David Ahern <dsahern@gmail.com>
>
> Been on my to-do list for a while. Thanks for the patch. This resolves,
> for example, a harmless error message from the 'host' command from
> bind9-host-9.10.3 which probes for dscp support via the loopback
> address. e.g.,
>
> $ host www.google.com
> ../../../../lib/isc/unix/net.c:581: sendmsg() failed: Network is unreachable
Applied, thanks everyone.
next prev parent reply other threads:[~2018-09-20 10:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-19 12:56 [PATCH net-next] ipv6: Allow the l3mdev to be a loopback Mike Manning
2018-09-19 17:19 ` David Ahern
2018-09-20 4:23 ` David Miller [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-09-19 11:34 Mike Manning
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=20180919.212336.231776734640409407.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=dsahern@gmail.com \
--cc=mmanning@vyatta.att-mail.com \
--cc=netdev@vger.kernel.org \
--cc=rshearma@vyatta.att-mail.com \
/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).