]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv6: Plumb support for filtering route dumps
authorDavid Ahern <dsahern@gmail.com>
Tue, 16 Oct 2018 01:56:44 +0000 (18:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 07:13:12 +0000 (00:13 -0700)
commitaa904c774702c4ba8dc85210257ec4877e3a0ea3
tree4507acef2c35b195e5b1209f65a0cb9a5dfcde99
parent11dba2eebaf4522037be19b3121fbd50c730686c
net/ipv6: Plumb support for filtering route dumps

Implement kernel side filtering of routes by table id, egress device
index, protocol, and route type. If the table id is given in the filter,
lookup the table and call fib6_dump_table directly for it.

Move the existing route flags check for prefix only routes to the new
filter.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_fib.c
net/ipv6/route.c