]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/ipv4/fib_frontend.c
SUNRPC: call_connect_status() must handle tasks that got transmitted
[linux.git] / net / ipv4 / fib_frontend.c
index 5bf653f369115d7c78bc59951dd77d3b1ea780b9..6df95be963116ced81f70e5fb51bfe6114e8965a 100644 (file)
@@ -829,6 +829,7 @@ int ip_valid_fib_dump_req(struct net *net, const struct nlmsghdr *nlh,
                return -EINVAL;
        }
 
+       filter->dump_all_families = (rtm->rtm_family == AF_UNSPEC);
        filter->flags    = rtm->rtm_flags;
        filter->protocol = rtm->rtm_protocol;
        filter->rt_type  = rtm->rtm_type;
@@ -899,6 +900,9 @@ static int inet_dump_fib(struct sk_buff *skb, struct netlink_callback *cb)
        if (filter.table_id) {
                tb = fib_get_table(net, filter.table_id);
                if (!tb) {
+                       if (filter.dump_all_families)
+                               return skb->len;
+
                        NL_SET_ERR_MSG(cb->extack, "ipv4: FIB table does not exist");
                        return -ENOENT;
                }