* [PATCH nft] monitor: do not print generation ID with --echo
@ 2020-10-20 19:50 Pablo Neira Ayuso
0 siblings, 0 replies; only message in thread
From: Pablo Neira Ayuso @ 2020-10-20 19:50 UTC (permalink / raw)
To: netfilter-devel
This fixes testcases/sets/0036add_set_element_expiration_0
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
src/monitor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/monitor.c b/src/monitor.c
index 3872ebcfbdaf..9e508f8f7574 100644
--- a/src/monitor.c
+++ b/src/monitor.c
@@ -849,7 +849,7 @@ static int netlink_events_newgen_cb(const struct nlmsghdr *nlh, int type,
break;
}
}
- if (genid >= 0) {
+ if (!nft_output_echo(&monh->ctx->nft->output) && genid >= 0) {
nft_mon_print(monh, "# new generation %d", genid);
if (pid >= 0)
nft_mon_print(monh, " by process %d (%s)", pid, name);
--
2.20.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-20 19:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-20 19:50 [PATCH nft] monitor: do not print generation ID with --echo Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).