From a3aac1dd49f4604226c40968457e378e50b9784a Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 24 Apr 2018 16:03:33 +0200 Subject: 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 --- iptables/nft.h | 1 + 1 file changed, 1 insertion(+) (limited to 'iptables/nft.h') 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. -- cgit v1.2.3