NLM_F_DUMP includes NLM_F_ROOT.

This commit is contained in:
Tobias Brunner 2012-06-15 12:50:30 +02:00
parent 8ec51f83e5
commit 5c1332bf7c

View File

@ -1135,7 +1135,7 @@ static host_t *get_route(private_kernel_netlink_net_t *this, host_t *dest,
/* We dump all addresses for IPv4, as we want to ignore IPsec specific
* routes installed by us. But the kernel does not return source
* addresses in a IPv6 dump, so fall back to get() for v6 routes. */
hdr->nlmsg_flags |= NLM_F_ROOT | NLM_F_DUMP;
hdr->nlmsg_flags |= NLM_F_DUMP;
}
hdr->nlmsg_type = RTM_GETROUTE;
hdr->nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg));