extern int netlink_batch_send(struct netlink_ctx *ctx, struct list_head *err_list);
-extern uint16_t netlink_genid_get(struct netlink_ctx *ctx);
extern void netlink_restart(struct mnl_socket *nf_sock);
#define netlink_abi_error() \
__netlink_abi_error(__FILE__, __LINE__, strerror(errno));
nf_sock = netlink_open_sock();
}
-uint16_t netlink_genid_get(struct netlink_ctx *ctx)
-{
- return mnl_genid_get(ctx);
-}
-
void __noreturn __netlink_abi_error(const char *file, int line,
const char *reason)
{
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)
};
__cache_flush(&cache->list);
- cache->genid = netlink_genid_get(&ctx);
+ cache->genid = mnl_genid_get(&ctx);
}
void cache_release(struct nft_cache *cache)
}
#include <netlink.h>
+#include <mnl.h>
static int __do_add_setelems(struct netlink_ctx *ctx, const struct handle *h,
struct set *set, struct expr *expr, uint32_t flags)