diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-07-28 20:03:53 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-08-18 03:14:57 +0200 |
commit | 850f0a56b6ad625d6c5d8ba28ec4f55ec02ff2a7 (patch) | |
tree | 6c6f18f7db5d12ed118ecca86deb40a763aaafa6 /src/statement.c | |
parent | 788c986343bc24bd0272e8aa409121ffe51f1ef3 (diff) |
src: add 'to' for snat and dnat
This is extra syntaxtic sugar to get this consistent with other
statements such as redirect, masquerade, dup and fwd that indicates
where to go.
Existing syntax is still preserved, but the listing shows the one
including 'to'.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/statement.c')
-rw-r--r-- | src/statement.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/statement.c b/src/statement.c index 7778a955..ccc16bb7 100644 --- a/src/statement.c +++ b/src/statement.c @@ -396,7 +396,7 @@ static void nat_stmt_print(const struct stmt *stmt) [NFT_NAT_DNAT] = "dnat", }; - printf("%s ", nat_types[stmt->nat.type]); + printf("%s to ", nat_types[stmt->nat.type]); if (stmt->nat.addr) expr_print(stmt->nat.addr); if (stmt->nat.proto) { |