From 68616e0454389ac524f9bb6b747cbb022144cd98 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 20 Sep 2021 18:52:18 +0200 Subject: monitor: display rule position handle This allow to locate the incremental update in the ruleset. Signed-off-by: Pablo Neira Ayuso --- src/monitor.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/monitor.c') 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); -- cgit v1.2.3