diff options
author | David Ahern <dsa@cumulusnetworks.com> | 2015-09-02 13:58:36 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-15 12:01:41 -0700 |
commit | c36ba6603a1154ac617d023bbcc062a12afb258b (patch) | |
tree | 4ce0ed1e81dcc34125b19cdb7d4c6e431b1bf4bd /include | |
parent | b7503e0cdb5dbec5d201aa69d8888c14679b5ae8 (diff) | |
download | linux-c36ba6603a1154ac617d023bbcc062a12afb258b.tar.bz2 |
net: Allow user to get table id from route lookup
rt_fill_info which is called for 'route get' requests hardcodes the
table id as RT_TABLE_MAIN which is not correct when multiple tables
are used. Use the newly added table id in the rtable to send back
the correct table similar to what is done for IPv6.
To maintain current ABI a new request flag, RTM_F_LOOKUP_TABLE, is
added to indicate the actual table is wanted versus the hardcoded
response.
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/rtnetlink.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/rtnetlink.h b/include/uapi/linux/rtnetlink.h index 702024769c74..06625b401422 100644 --- a/include/uapi/linux/rtnetlink.h +++ b/include/uapi/linux/rtnetlink.h @@ -270,6 +270,7 @@ enum rt_scope_t { #define RTM_F_CLONED 0x200 /* This route is cloned */ #define RTM_F_EQUALIZE 0x400 /* Multipath equalizer: NI */ #define RTM_F_PREFIX 0x800 /* Prefix addresses */ +#define RTM_F_LOOKUP_TABLE 0x1000 /* set rtm_table to FIB lookup result */ /* Reserved table identifiers */ |