diff options
author | Kalash Nainwal <kalash@arista.com> | 2019-02-20 16:23:04 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-23 08:18:58 +0100 |
commit | b929a3603b8ddb400dfe8b04ffe6b8063925e127 (patch) | |
tree | 8be56905433fc1d070c47ffac40fa29306e8d4a8 /net | |
parent | 077a353641d29fc28062866ec589eb2e365f1d56 (diff) | |
download | linux-stable-b929a3603b8ddb400dfe8b04ffe6b8063925e127.tar.gz linux-stable-b929a3603b8ddb400dfe8b04ffe6b8063925e127.tar.bz2 linux-stable-b929a3603b8ddb400dfe8b04ffe6b8063925e127.zip |
net: Set rtm_table to RT_TABLE_COMPAT for ipv6 for tables > 255
[ Upstream commit 97f0082a0592212fc15d4680f5a4d80f79a1687c ]
Set rtm_table to RT_TABLE_COMPAT for ipv6 for tables > 255 to
keep legacy software happy. This is similar to what was done for
ipv4 in commit 709772e6e065 ("net: Fix routing tables with
id > 255 for legacy software").
Signed-off-by: Kalash Nainwal <kalash@arista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 82bf2c4ebdb2..c9ea3b0de43b 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -2558,7 +2558,7 @@ static int rt6_fill_node(struct net *net, table = rt->rt6i_table->tb6_id; else table = RT6_TABLE_UNSPEC; - rtm->rtm_table = table; + rtm->rtm_table = table < 256 ? table : RT_TABLE_COMPAT; if (nla_put_u32(skb, RTA_TABLE, table)) goto nla_put_failure; if (rt->rt6i_flags & RTF_REJECT) { |