net: fib_rules: Correctly set table field when table number exceeds 8 bits
authorJethro Beekman <jethro@fortanix.com>
Wed, 12 Feb 2020 15:43:41 +0000 (16:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Mar 2020 15:42:15 +0000 (16:42 +0100)
commit75515736cd9db3efcff952ba8e7e001f73b59eaf
tree85804f69738c423f56156dc97a3272fb6c81e30e
parent7bc2d23c3ab92645a01dd7f8b72feb0049b664b3
net: fib_rules: Correctly set table field when table number exceeds 8 bits

[ Upstream commit 540e585a79e9d643ede077b73bcc7aa2d7b4d919 ]

In 709772e6e06564ed94ba740de70185ac3d792773, RT_TABLE_COMPAT was added to
allow legacy software to deal with routing table numbers >= 256, but the
same change to FIB rule queries was overlooked.

Signed-off-by: Jethro Beekman <jethro@fortanix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/fib_rules.c