]> 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)
commit2eb19f56c883f36df2fd85318c2a6361344ada1d
tree4507acef2c35b195e5b1209f65a0cb9a5dfcde99
parent44917ece4659d8c81447a9b847aaf78a9e388ede
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