summaryrefslogtreecommitdiffstats
path: root/src/monitor.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2020-10-22 22:34:17 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2020-10-23 14:26:05 +0200
commit46b54fdcf266d3d631ffb6102067825d7672db46 (patch)
tree4fe81506f1106b198df346e6fdb524bf65cb8ac2 /src/monitor.c
parent0e258556f7f3da35deeb6d5cfdec51eafc7db80d (diff)
Revert "monitor: do not print generation ID with --echo"
Revert 0e258556f7f3 ("monitor: do not print generation ID with --echo"). There is actually a kernel bug which is preventing from displaying this generation ID message. Update the tests/shell to remove the last line of the --echo output which displays the generation ID once the "netfilter: nftables: fix netlink report logic in flowtable and genid" kernel fix is applied. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/monitor.c')
-rw-r--r--src/monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/monitor.c b/src/monitor.c
index 9e508f8f..3872ebcf 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 (!nft_output_echo(&monh->ctx->nft->output) && genid >= 0) {
+ if (genid >= 0) {
nft_mon_print(monh, "# new generation %d", genid);
if (pid >= 0)
nft_mon_print(monh, " by process %d (%s)", pid, name);