Skip to content

Commit 97f0082

Browse files
Kalash Nainwaldavem330
authored andcommitted
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 709772e ("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>
1 parent a11f575 commit 97f0082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv6/route.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4665,7 +4665,7 @@ static int rt6_fill_node(struct net *net, struct sk_buff *skb,
46654665
table = rt->fib6_table->tb6_id;
46664666
else
46674667
table = RT6_TABLE_UNSPEC;
4668-
rtm->rtm_table = table;
4668+
rtm->rtm_table = table < 256 ? table : RT_TABLE_COMPAT;
46694669
if (nla_put_u32(skb, RTA_TABLE, table))
46704670
goto nla_put_failure;
46714671

0 commit comments

Comments
 (0)