diff options
| author | Kalash Nainwal <kalash@arista.com> | 2019-02-20 19:23:04 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2019-02-22 18:21:27 -0500 |
| commit | 97f0082a0592212fc15d4680f5a4d80f79a1687c (patch) | |
| tree | edcedfa17d4e661a41ab5af83177201b16a9c623 | |
| parent | a11f5756a336567d361124bda1456e88e2a516e4 (diff) | |
net: Set rtm_table to RT_TABLE_COMPAT for ipv6 for tables > 255
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>
| -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 047c47224dba..ce15dc4ccbfa 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
| @@ -4665,7 +4665,7 @@ static int rt6_fill_node(struct net *net, struct sk_buff *skb, | |||
| 4665 | table = rt->fib6_table->tb6_id; | 4665 | table = rt->fib6_table->tb6_id; |
| 4666 | else | 4666 | else |
| 4667 | table = RT6_TABLE_UNSPEC; | 4667 | table = RT6_TABLE_UNSPEC; |
| 4668 | rtm->rtm_table = table; | 4668 | rtm->rtm_table = table < 256 ? table : RT_TABLE_COMPAT; |
| 4669 | if (nla_put_u32(skb, RTA_TABLE, table)) | 4669 | if (nla_put_u32(skb, RTA_TABLE, table)) |
| 4670 | goto nla_put_failure; | 4670 | goto nla_put_failure; |
| 4671 | 4671 | ||
