]> git.ipfire.org Git - thirdparty/nftables.git/commit
parser_bison: keep snat/dnat existing syntax unchanged
authorLiping Zhang <liping.zhang@spreadtrum.com>
Mon, 22 Aug 2016 15:34:15 +0000 (23:34 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 22 Aug 2016 16:27:43 +0000 (18:27 +0200)
commitc12c09041ec55daa4c6562d61be81f4ecdfb7fd8
treecb5eb9f0b586b8ca2c7a1d0c2aecef8e98a0f84c
parent0d21d1ec727cd8cad9cc26b74a6db1ced6739189
parser_bison: keep snat/dnat existing syntax unchanged

We should keep existing syntax unchanged, and this was emphasized
in the commit 850f0a56b6ad ("src: add 'to' for snat and dnat")'s
commit log: "Existing syntax is still preserved, but the listing
shows the one including 'to'."

This problem was found by running shell test:
  # ./run-tests.sh
  [ ... ]
  W: [FAILED] ./testcases/maps/anonymous_snat_map_0
  I: [OK] ./testcases/maps/map_with_flags_0
  W: [FAILED] ./testcases/maps/named_snat_map_0
  [ ... ]

Fixes: 850f0a56b6ad ("src: add 'to' for snat and dnat")
Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/parser_bison.y