diff options
author | Florian Westphal <fw@strlen.de> | 2020-07-14 18:33:59 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2020-07-18 15:28:01 +0200 |
commit | 73605785cfc2a1928ddea3e2e675b460b27acd66 (patch) | |
tree | 535eac1a45393f0af4f121d5919622b7c8a580fb | |
parent | b593378b9b2470213af1892053af519801053a7e (diff) |
monitor: print "dormant" flag in monitor mode
This distinction is important: a table with this flag is inert -- all
base chains are unregistered and see no traffic.
Signed-off-by: Florian Westphal <fw@strlen.de>
-rw-r--r-- | src/monitor.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/monitor.c b/src/monitor.c index bb269c02..3872ebcf 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -214,6 +214,10 @@ static int netlink_events_table_cb(const struct nlmsghdr *nlh, int type, nft_mon_print(monh, "%s %s", family2str(t->handle.family), t->handle.table.name); + + if (t->flags & TABLE_F_DORMANT) + nft_mon_print(monh, " { flags dormant; }"); + if (nft_output_handle(&monh->ctx->nft->output)) nft_mon_print(monh, " # handle %" PRIu64 "", t->handle.handle.id); |