diff options
author | Florian Westphal <fw@strlen.de> | 2017-02-03 15:22:28 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2017-02-05 22:01:04 +0100 |
commit | 4ae0b6dc90d16b4d93a4e8b6703f23dcf2467b85 (patch) | |
tree | fa42220b6a574303f96148cab8d6d4a9cdd93843 /tests/py/ip/dnat.t | |
parent | 31148d448fa55c8a2793d40e7ff77ff07f0eb8cc (diff) |
statement: fix print of ip dnat address
the change causes non-ipv6 addresses to not be printed at all in case
a nfproto was given.
Also add a test case to catch this.
Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1117
Fixes: 5ab0e10fc6e2c22363a ("src: support for RFC2732 IPv6 address format with brackets")
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/ip/dnat.t')
-rw-r--r-- | tests/py/ip/dnat.t | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/py/ip/dnat.t b/tests/py/ip/dnat.t index da00106e..089017c8 100644 --- a/tests/py/ip/dnat.t +++ b/tests/py/ip/dnat.t @@ -7,6 +7,7 @@ iifname "eth0" tcp dport != 80-90 dnat to 192.168.3.2;ok iifname "eth0" tcp dport {80, 90, 23} dnat to 192.168.3.2;ok iifname "eth0" tcp dport != {80, 90, 23} dnat to 192.168.3.2;ok iifname "eth0" tcp dport != 23-34 dnat to 192.168.3.2;ok +iifname "eth0" tcp dport 81 dnat to 192.168.3.2:8080;ok dnat to ct mark map { 0x00000014 : 1.2.3.4};ok dnat to ct mark . ip daddr map { 0x00000014 . 1.1.1.1 : 1.2.3.4};ok |