[PATCH nft 1/6] statement: print space before "{" in set add

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



old:
add @set5{ ip6 saddr . ip6 daddr}
new:
add @set5 { ip6 saddr . ip6 daddr}

Signed-off-by: Florian Westphal <fw@xxxxxxxxx>
---
 src/statement.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/statement.c b/src/statement.c
index b8e0b036b9eb..f81e0123adda 100644
--- a/src/statement.c
+++ b/src/statement.c
@@ -571,7 +571,7 @@ static void set_stmt_print(const struct stmt *stmt, struct output_ctx *octx)
 {
 	nft_print(octx, "%s ", set_stmt_op_names[stmt->set.op]);
 	expr_print(stmt->set.set, octx);
-	nft_print(octx, "{ ");
+	nft_print(octx, " { ");
 	expr_print(stmt->set.key, octx);
 	nft_print(octx, " } ");
 }
-- 
2.16.1

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux