]> git.baikalelectronics.ru Git - kernel.git/commit
net: Add struct for fib dump filter
authorDavid Ahern <dsahern@gmail.com>
Tue, 16 Oct 2018 01:56:42 +0000 (18:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 07:13:12 +0000 (00:13 -0700)
commit8dfbc5f74f79c38cf791bd033459314c7a22759a
treeec0189bb48ecef31408ac12c3fcb5f506ffba5bf
parentdf450df764f72238a2f7c3405bc8de0dd8956e50
net: Add struct for fib dump filter

Add struct fib_dump_filter for options on limiting which routes are
returned in a dump request. The current list is table id, protocol,
route type, rtm_flags and nexthop device index. struct net is needed
to lookup the net_device from the index.

Declare the filter for each route dump handler and plumb the new
arguments from dump handlers to ip_valid_fib_dump_req.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_route.h
include/net/ip_fib.h
net/ipv4/fib_frontend.c
net/ipv4/ipmr.c
net/ipv6/ip6_fib.c
net/ipv6/ip6mr.c
net/mpls/af_mpls.c