path: root/include/mnl.h
diff options
authorPablo Neira Ayuso <>2019-06-07 11:06:56 +0200
committerPablo Neira Ayuso <>2019-06-07 11:14:13 +0200
commit8951c655e95b790ead4ff73a98b6c8027df876de (patch)
tree8c8d8d013260dab3cd7a0881eaa97d234e749378 /include/mnl.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 <>
Diffstat (limited to 'include/mnl.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mnl.h b/include/mnl.h
index 9f50c3da..eeba7379 100644
--- a/include/mnl.h
+++ b/include/mnl.h
@@ -10,7 +10,7 @@ struct mnl_socket *nft_mnl_socket_open(void);
struct mnl_socket *nft_mnl_socket_reopen(struct mnl_socket *nf_sock);
uint32_t mnl_seqnum_alloc(uint32_t *seqnum);
-uint16_t mnl_genid_get(struct netlink_ctx *ctx);
+uint32_t mnl_genid_get(struct netlink_ctx *ctx);
struct mnl_err {
struct list_head head;