From 01b27b6d961d548c25f0fc185fd05fc3d2380080 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 16 Sep 2014 18:58:11 +0200 Subject: mnl: consistency checks across several netlink dumps Obtain the generation ID before dumping the object lists. Then, check for generation ID updates when dumping the several lists that this needs. In case of interference, nft has to remove the stale objects and retry from scratch. This is complementary to the NLM_F_DUMP_INTR flag which is local to one single netlink dump. Signed-off-by: Pablo Neira Ayuso --- include/netlink.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/netlink.h') diff --git a/include/netlink.h b/include/netlink.h index 2df37422..4f794707 100644 --- a/include/netlink.h +++ b/include/netlink.h @@ -138,6 +138,7 @@ extern void netlink_dump_set(struct nft_set *nls); extern int netlink_batch_send(struct list_head *err_list); +extern void netlink_genid_get(void); extern void netlink_restart(void); #define netlink_abi_error() \ __netlink_abi_error(__FILE__, __LINE__, strerror(errno)); -- cgit v1.2.3