All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Ahern <dsa@cumulusnetworks.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: netdev@vger.kernel.org
Subject: Re: [iproute2 net-next] ip route: Add RTM_F_LOOKUP_TABLE flag and show table id
Date: Mon, 21 Sep 2015 15:28:53 -0600	[thread overview]
Message-ID: <56007695.3070003@cumulusnetworks.com> (raw)
In-Reply-To: <20150921141929.681ebf69@urahara>

On 9/21/15 3:19 PM, Stephen Hemminger wrote:
>> @@ -1638,6 +1638,8 @@ static int iproute_get(int argc, char **argv)
>>   	if (req.r.rtm_family == AF_UNSPEC)
>>   		req.r.rtm_family = AF_INET;
>>
>> +	req.r.rtm_flags |= RTM_F_LOOKUP_TABLE;
>> +
>>   	if (rtnl_talk(&rth, &req.n, &req.n, sizeof(req)) < 0)
>>   		exit(2);
>>
>
> How will this work (or not) on older kernels?
>

It works just fine. First test used the wrong VM and was puzzled to not 
see the table id in the output. Then I realized the older kernel did not 
recognize the RTM_F_LOOKUP_TABLE; silently ignores the flag. With a 
kernel that does recognize it I get the table id in the output when it 
is not main.

David

  reply	other threads:[~2015-09-21 21:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-21 18:19 [iproute2 net-next] ip route: Add RTM_F_LOOKUP_TABLE flag and show table id David Ahern
2015-09-21 21:19 ` Stephen Hemminger
2015-09-21 21:28   ` David Ahern [this message]
2015-09-21 21:58     ` David Miller
2015-09-21 22:03       ` David Ahern
2015-09-21 22:03         ` David Miller
2015-09-21 22:23           ` David Ahern
2015-09-21 22:36             ` David Miller
2015-09-23 23:14 ` Stephen Hemminger

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=56007695.3070003@cumulusnetworks.com \
    --to=dsa@cumulusnetworks.com \
    --cc=netdev@vger.kernel.org \
    --cc=stephen@networkplumber.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.