diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-08-16 18:07:21 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-08-18 03:14:57 +0200 |
commit | 5ab0e10fc6e2c22363ad4428f9aaf8965ee71d51 (patch) | |
tree | 760020f2fcc5c43d170786d15b5d4756a03ea006 /tests/py/ip6/snat.t.payload.ip6 | |
parent | 850f0a56b6ad625d6c5d8ba28ec4f55ec02ff2a7 (diff) |
src: support for RFC2732 IPv6 address format with brackets
The statement:
dnat to 2001:838:35f:1:::80
is very confusing as it is not so easy to identify where address ends
and the port starts. This even harder to read with ranges.
So this patch adds squared brackets as RFC2732 to enclose the IPv6
address.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/ip6/snat.t.payload.ip6')
-rw-r--r-- | tests/py/ip6/snat.t.payload.ip6 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/py/ip6/snat.t.payload.ip6 b/tests/py/ip6/snat.t.payload.ip6 index fbc99c1a..ea403638 100644 --- a/tests/py/ip6/snat.t.payload.ip6 +++ b/tests/py/ip6/snat.t.payload.ip6 @@ -1,4 +1,4 @@ -# tcp dport 80-90 snat to 2001:838:35f:1::-2001:838:35f:2:: :80-100 +# tcp dport 80-90 snat to [2001:838:35f:1::]-[2001:838:35f:2::]:80-100 ip6 test-ip6 postrouting [ payload load 1b @ network header + 6 => reg 1 ] [ cmp eq reg 1 0x00000006 ] @@ -11,7 +11,7 @@ ip6 test-ip6 postrouting [ immediate reg 4 0x00006400 ] [ nat snat ip6 addr_min reg 1 addr_max reg 2 proto_min reg 3 proto_max reg 4 ] -# tcp dport 80-90 snat to 2001:838:35f:1::-2001:838:35f:2:::100 +# tcp dport 80-90 snat to [2001:838:35f:1::]-[2001:838:35f:2::]:100 ip6 test-ip6 postrouting [ payload load 1b @ network header + 6 => reg 1 ] [ cmp eq reg 1 0x00000006 ] |