From: Pablo Neira Ayuso Date: Mon, 20 Sep 2021 16:52:18 +0000 (+0200) Subject: monitor: display rule position handle X-Git-Tag: v1.0.1~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=68616e0454389ac524f9bb6b747cbb022144cd98;p=thirdparty%2Fnftables.git monitor: display rule position handle This allow to locate the incremental update in the ruleset. Signed-off-by: Pablo Neira Ayuso --- diff --git a/src/monitor.c b/src/monitor.c index 144fe96c..ffaa39b6 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -541,7 +541,10 @@ static int netlink_events_rule_cb(const struct nlmsghdr *nlh, int type, family, r->handle.table.name, r->handle.chain.name); - + if (r->handle.position.id) { + nft_mon_print(monh, "handle %" PRIu64" ", + r->handle.position.id); + } switch (type) { case NFT_MSG_NEWRULE: rule_print(r, &monh->ctx->nft->output);