From 0d9d04c31481c7c73b4ba64f0ad746b84c4250c5 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 14 Aug 2017 17:47:21 +0200 Subject: src: make netlink sequence number non-static Place sequence number that is allocated per-command on the struct netlink_ctx structure. This is allocated from nft_run() to correlate commands with netlink messages for error reporting. Batch support probing also shares this sequence numbers with commands. There is an inpendent cache sequence number though, this routine is called from a different path, usually from the evaluation phase. Signed-off-by: Pablo Neira Ayuso --- include/nftables.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/nftables.h') diff --git a/include/nftables.h b/include/nftables.h index a88c86d1..a457aba6 100644 --- a/include/nftables.h +++ b/include/nftables.h @@ -40,6 +40,7 @@ struct nft_ctx { struct nft_cache { bool initialized; struct list_head list; + uint32_t seqnum; }; extern unsigned int max_errors; -- cgit v1.2.3