]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Fix table id reference in fib_sync_down_addr
authorDavid Ahern <dsahern@kernel.org>
Thu, 7 Nov 2019 18:29:52 +0000 (18:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Nov 2019 00:14:36 +0000 (16:14 -0800)
commitd6cfeac33f77ba297986c51bfb2c7a7db6bc7ac7
treee198faf564c9abbc25341cf972f403e325395607
parent74d1986737f9d644e075d10dd57f6ea4f1fd9a97
ipv4: Fix table id reference in fib_sync_down_addr

Hendrik reported routes in the main table using source address are not
removed when the address is removed. The problem is that fib_sync_down_addr
does not account for devices in the default VRF which are associated
with the main table. Fix by updating the table id reference.

Fixes: b9ef42ef6125 ("net: Don't delete routes in different VRFs")
Reported-by: Hendrik Donner <hd@os-cillation.de>
Signed-off-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_semantics.c