diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-04-24 16:03:33 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-04-24 16:37:08 +0200 |
commit | a3aac1dd49f4604226c40968457e378e50b9784a (patch) | |
tree | c3b5d1802f3fd2e07cc13dfcc5a316d819a0ad6e /iptables/nft.h | |
parent | a567dc31731cf920a83be8f73e557e33a5091b53 (diff) |
iptables-compat: handle netlink dump EINTR errors
Release existing list and restart in case that netlink dump hits EINTR.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft.h')
-rw-r--r-- | iptables/nft.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/nft.h b/iptables/nft.h index 310cedec..e7225581 100644 --- a/iptables/nft.h +++ b/iptables/nft.h @@ -49,6 +49,7 @@ int mnl_talk(struct nft_handle *h, struct nlmsghdr *nlh, void *data); int nft_init(struct nft_handle *h, struct builtin_table *t); void nft_fini(struct nft_handle *h); +int nft_restart(struct nft_handle *h); /* * Operations with tables. |