]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 7 Apr 2020 08:50:58 +0000 (10:50 +0200)
commit83849f1362421d08b3382d3a8ed7a6e28684cc0d
treefe1d7a83d7e0f3e5d704026655242ebe4ae3bfbd
parent2f6efa304be208fd0638ac8b11dbb06c2babaf1a
net: fib_rules: Correctly set table field when table number exceeds 8 bits

BugLink: https://bugs.launchpad.net/bugs/1868623
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/core/fib_rules.c