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>
Showing
- include/net/ip6_route.h 1 addition, 0 deletionsinclude/net/ip6_route.h
- include/net/ip_fib.h 12 additions, 1 deletioninclude/net/ip_fib.h
- net/ipv4/fib_frontend.c 4 additions, 2 deletionsnet/ipv4/fib_frontend.c
- net/ipv4/ipmr.c 5 additions, 1 deletionnet/ipv4/ipmr.c
- net/ipv6/ip6_fib.c 3 additions, 2 deletionsnet/ipv6/ip6_fib.c
- net/ipv6/ip6mr.c 4 additions, 1 deletionnet/ipv6/ip6mr.c
- net/mpls/af_mpls.c 8 additions, 4 deletionsnet/mpls/af_mpls.c
Loading
Please register or sign in to comment