summaryrefslogtreecommitdiffstats
path: root/include/nftables.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2019-06-07 11:06:56 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2019-06-07 11:14:13 +0200
commit8951c655e95b790ead4ff73a98b6c8027df876de (patch)
tree8c8d8d013260dab3cd7a0881eaa97d234e749378 /include/nftables.h
parente0aace9434129fecd1ca2094f09dbeec46957ec3 (diff)
src: generation ID is 32-bit long
Update mnl_genid_get() to return 32-bit long generation ID. Add nft_genid_u16() which allows us to catch ruleset updates from the netlink dump path via 16-bit long nfnetlink resource ID field. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/nftables.h')
-rw-r--r--include/nftables.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/nftables.h b/include/nftables.h
index af2c1ea1..b7c78572 100644
--- a/include/nftables.h
+++ b/include/nftables.h
@@ -78,7 +78,7 @@ static inline bool nft_output_numeric_symbol(const struct output_ctx *octx)
}
struct nft_cache {
- uint16_t genid;
+ uint32_t genid;
struct list_head list;
uint32_t seqnum;
uint32_t cmd;