]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: don't bail out on dump errors
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 19 Jan 2017 16:43:56 +0000 (17:43 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 23 Jan 2017 13:27:36 +0000 (14:27 +0100)
commit04ccf3b2417ea17e1ec705cd6e442816e4eb4002
tree919b89cf534d7b4336ee41194970e0870284b0e6
parent1967b4f67cfbb64d12fc4953db35e3d7aa5f773e
netlink: don't bail out on dump errors

This patch removes the existing error messages on netlink dump errors.
These functions used to be called from list commands. These days they
are called from the cache cache population path.

Note that nft breaks with older kernels at netlink_list_objs() since we
have no stateful objects support there.

Silence errors at this stage and return an empty list, thus, nft bails
out on explicit user commands if no nf_tables support is available.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink.c