summaryrefslogtreecommitdiffstats
path: root/src/rule.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rule.c')
-rw-r--r--src/rule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rule.c b/src/rule.c
index 38cd648e..ef12becd 100644
--- a/src/rule.c
+++ b/src/rule.c
@@ -135,6 +135,7 @@ static int cache_init(struct mnl_socket *nf_sock, struct nft_cache *cache,
ctx.nf_sock = nf_sock;
ctx.cache = cache;
ctx.msgs = msgs;
+ ctx.seqnum = cache->seqnum++;
ret = cache_init_tables(&ctx, &handle, cache);
if (ret < 0)
@@ -154,7 +155,7 @@ int cache_update(struct mnl_socket *nf_sock, struct nft_cache *cache,
if (cache->initialized)
return 0;
replay:
- netlink_genid_get(nf_sock);
+ netlink_genid_get(nf_sock, cache->seqnum++);
ret = cache_init(nf_sock, cache, cmd, msgs);
if (ret < 0) {
cache_release(cache);