From 0562beb6544d3fdb897870a10d9925eab40ac73a Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 28 Sep 2018 14:55:56 +0200 Subject: src: get rid of netlink_genid_get() Signed-off-by: Pablo Neira Ayuso --- src/rule.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/rule.c') diff --git a/src/rule.c b/src/rule.c index 6d027c26..32b13b19 100644 --- a/src/rule.c +++ b/src/rule.c @@ -235,7 +235,7 @@ int cache_update(struct mnl_socket *nf_sock, struct nft_cache *cache, replay: ctx.seqnum = cache->seqnum++; - genid = netlink_genid_get(&ctx); + genid = mnl_genid_get(&ctx); if (genid && genid == cache->genid) return 0; if (cache->genid) @@ -278,7 +278,7 @@ void cache_flush(struct mnl_socket *nf_sock, struct nft_cache *cache, }; __cache_flush(&cache->list); - cache->genid = netlink_genid_get(&ctx); + cache->genid = mnl_genid_get(&ctx); } void cache_release(struct nft_cache *cache) @@ -1341,6 +1341,7 @@ void cmd_free(struct cmd *cmd) } #include +#include static int __do_add_setelems(struct netlink_ctx *ctx, const struct handle *h, struct set *set, struct expr *expr, uint32_t flags) -- cgit v1.2.3