path: root/include/netlink.h
diff options
authorPablo Neira Ayuso <>2014-07-04 12:24:46 +0200
committerPablo Neira Ayuso <>2014-07-14 12:30:43 +0200
commit09f81768090ffea1dbb0362950b0d5414c609436 (patch)
tree05f388c6ebbbccab960bdb6e93ca8a03c299b860 /include/netlink.h
parent654b51ab84cf10591eba1c443e6d65bf2de35c37 (diff)
mnl: check for NLM_F_DUMP_INTR when dumping object lists
This flag allows to detect that an update has ocurred while dumping any of the object lists. In case of interference, nft cancels the netlink socket to skip processing the remaining stale entries and it retries to obtain fresh list of objects. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/netlink.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/include/netlink.h b/include/netlink.h
index 4ef7365f..af5dcd94 100644
--- a/include/netlink.h
+++ b/include/netlink.h
@@ -137,6 +137,8 @@ extern void netlink_dump_expr(struct nft_rule_expr *nle);
extern void netlink_dump_set(struct nft_set *nls);
extern int netlink_batch_send(struct list_head *err_list);
+extern void netlink_restart(void);
extern void netlink_abi_error(void) __noreturn;
extern int netlink_io_error(struct netlink_ctx *ctx,
const struct location *loc, const char *fmt, ...);