netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Duyck <alexander.h.duyck@redhat.com>
To: Sabrina Dubroca <sd@queasysnail.net>
Cc: netdev@vger.kernel.org
Subject: Re: ipv4 route dump broken with multiple subnets
Date: Tue, 10 Mar 2015 10:37:13 -0700	[thread overview]
Message-ID: <54FF2BC9.8080202@redhat.com> (raw)
In-Reply-To: <20150310170746.GA1743@kria>

On 03/10/2015 10:07 AM, Sabrina Dubroca wrote:
> With this setup (no other address assigned):
>
> ip link add type dummy
> ip link set dummy0 up
> ip a a 10.0.0.1/24 dev dummy0
>
> route dump works:
>
> # ip r
> 10.0.0.0/24 dev dummy0 proto kernel scope link src 10.0.0.1
>
>
> If I add another address:
>
> ip a a 10.0.1.1/24 dev dummy0
>
> or a route:
>
> ip r a 10.0.1.0/24 via 10.0.0.2
>
> # ip r
> <empty>
>
> It's the same with /proc/net/route instead of ip route.
>
> But with a default route the table appears again.
>
>
> This patch seems to fix the problem, but I'm not sure it is correct.

It looks like I can reproduce it as well if I just add dummy, and then 
drop the default route.  I will look into it and should be able to tell 
you what is going on in the next hour or two.

- Alex

  reply	other threads:[~2015-03-10 17:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-10 17:07 ipv4 route dump broken with multiple subnets Sabrina Dubroca
2015-03-10 17:37 ` Alexander Duyck [this message]
2015-03-10 18:25 ` [net-next PATCH] fib_trie: Correctly handle case of key == 0 in leaf_walk_rcu Alexander Duyck
2015-03-10 18:48   ` Sabrina Dubroca
2015-03-10 20:14     ` David Miller

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=54FF2BC9.8080202@redhat.com \
    --to=alexander.h.duyck@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=sd@queasysnail.net \
    /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).