summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArturo Borrero <arturo.borrero.glez@gmail.com>2015-04-07 17:05:14 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-04-08 19:05:12 +0200
commitcd861145b95a1d0fc9b716e806fed8935df56adc (patch)
treec575918c500e65adbd52477f2bf64598bcb167ac
parent8dbea7de5db5e84736bfe6d650a36bb01f70226a (diff)
monitor: fix missing space after chain name
Due to change f3ff9e9 ("rule: delete extra space in rule indentation") in function rule_print(), a missing space happens in monitor. before this patch: % nft monitor add rule ip test-table test-chainip protocol tcp after this patch: % nft monitor add rule ip test-table test-chain ip protocol tcp Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--src/netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netlink.c b/src/netlink.c
index f957295e..c118502a 100644
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -1869,7 +1869,7 @@ static int netlink_events_rule_cb(const struct nlmsghdr *nlh, int type,
r = netlink_delinearize_rule(monh->ctx, nlr);
nlr_for_each_set(nlr, rule_map_decompose_cb, NULL);
- printf("add rule %s %s %s", family, table, chain);
+ printf("add rule %s %s %s ", family, table, chain);
rule_print(r);
printf("\n");