From: "Andreas Hübner" <andreas@k4n.de>
To: Hannes Frederic Sowa <hannes@stressinduktion.org>
Cc: netdev@vger.kernel.org, "d. caratti" <davide.caratti@gmail.com>
Subject: Re: icmpv6: issue with routing table entries from link local addresses
Date: Tue, 13 Sep 2016 08:35:09 +0200 [thread overview]
Message-ID: <20160913063509.GJ26782@targo.k4n.de> (raw)
In-Reply-To: <b6804e09-403f-64ff-257b-6c5fda7f8047@stressinduktion.org>
On Mon, Sep 12, 2016 at 07:26:23PM +0200, Hannes Frederic Sowa wrote:
> > Actually, I'm convinced I must be doing something wrong here. The setup
> > for the issue is quite trivial, someone would have tripped over it
> > already. The only condition is that one host has multiple interfaces
> > with ipv6 enabled.
> >
> > Any help in shedding some light onto this issue would be appreciated.
>
> This shouldn't be the case. We certainly carry over the ifindex of the
> received packet into the routing lookup of the outgoing packet, thus the
> appropriate rule, with outgoing ifindex should be selected.
I saw this in the code and that's the reason why I wrote the initial
mail. Was trying to trace with ftrace, but got stuck somewhere around
the find_rr_leaf function. (If there is any good documentation on the
internal fib data structure, please point me to it.)
> I also couldn't reproduce your problem here with my system. Can you
> verify with tcpdump that the packet is leaving on another interface?
It is not leaving on another interface but simply discarded on the host.
The Ip6OutNoRoutes stat in /proc/net/snmp6 is increased.
>From my understanding the routing subsystem finds the first matching entry
in the main routing table, checks the interface and bails out because it
does not match.
I did omit a crucial information in the last mail, I'm currently stuck
on an older distribution kernel (3.16).
I'll try to check if there have been any relevant changes to IPv6
route lookup in the last two years.
(Maybe I should try to reproduce it with the current kernel, sorry that
I didn't think of this before.)
Andreas
prev parent reply other threads:[~2016-09-13 6:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-12 14:27 icmpv6: issue with routing table entries from link local addresses Andreas Hübner
2016-09-12 17:26 ` Hannes Frederic Sowa
2016-09-12 19:17 ` David Ahern
2016-09-13 9:22 ` Andreas Hübner
2016-09-13 11:59 ` Andreas Hübner
2016-09-13 2:03 ` Sowmini Varadhan
2016-09-13 2:42 ` Hannes Frederic Sowa
2016-09-13 3:05 ` Sowmini Varadhan
2016-09-13 3:01 ` YOSHIFUJI Hideaki
2016-09-13 6:35 ` Andreas Hübner [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=20160913063509.GJ26782@targo.k4n.de \
--to=andreas@k4n.de \
--cc=davide.caratti@gmail.com \
--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