net: Don't return invalid table id error when dumping all families
When doing a route dump across all address families, do not error out if the table does not exist. This allows a route dump for AF_UNSPEC with a table id that may only exist for some of the families. Do return the table does not exist error if dumping routes for a specific family and the table does not exist. Signed-off-by:David Ahern <dsahern@gmail.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/ip_fib.h 1 addition, 0 deletionsinclude/net/ip_fib.h
- net/ipv4/fib_frontend.c 4 additions, 0 deletionsnet/ipv4/fib_frontend.c
- net/ipv4/ipmr.c 3 additions, 0 deletionsnet/ipv4/ipmr.c
- net/ipv6/ip6_fib.c 3 additions, 0 deletionsnet/ipv6/ip6_fib.c
- net/ipv6/ip6mr.c 3 additions, 0 deletionsnet/ipv6/ip6mr.c
Loading
Please register or sign in to comment