diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-08-16 23:36:54 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-08-18 03:14:58 +0200 |
commit | 0d21d1ec727cd8cad9cc26b74a6db1ced6739189 (patch) | |
tree | fcb3d458ccb5571ddda5780f634b2ab0d53209bf /tests/py/ip6/redirect.t.payload.ip6 | |
parent | 6f2eb8548e0d18078989adec069b438b2f154767 (diff) |
parser_bison: redirect to :port for consistency with nat/masq statement
Use the colon port syntax for consistency with other statements.
Existing syntax is still preserved but the output displays the colon.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/ip6/redirect.t.payload.ip6')
-rw-r--r-- | tests/py/ip6/redirect.t.payload.ip6 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/py/ip6/redirect.t.payload.ip6 b/tests/py/ip6/redirect.t.payload.ip6 index 80250caa..420e1f36 100644 --- a/tests/py/ip6/redirect.t.payload.ip6 +++ b/tests/py/ip6/redirect.t.payload.ip6 @@ -97,7 +97,7 @@ ip6 test-ip6 output [ cmp eq reg 1 0x00003500 ] [ redir flags 0x1c ] -# udp dport 1234 redirect to 1234 +# udp dport 1234 redirect to :1234 ip6 test-ip6 output [ payload load 1b @ network header + 6 => reg 1 ] [ cmp eq reg 1 0x00000011 ] @@ -106,7 +106,7 @@ ip6 test-ip6 output [ immediate reg 1 0x0000d204 ] [ redir proto_min reg 1 ] -# ip6 daddr fe00::cafe udp dport 9998 redirect to 6515 +# ip6 daddr fe00::cafe udp dport 9998 redirect to :6515 ip6 test-ip6 output [ payload load 16b @ network header + 24 => reg 1 ] [ cmp eq reg 1 0x000000fe 0x00000000 0x00000000 0xfeca0000 ] @@ -117,7 +117,7 @@ ip6 test-ip6 output [ immediate reg 1 0x00007319 ] [ redir proto_min reg 1 ] -# ip6 nexthdr tcp redirect to 100-200 +# ip6 nexthdr tcp redirect to :100-200 ip6 test-ip6 output [ payload load 1b @ network header + 6 => reg 1 ] [ cmp eq reg 1 0x00000006 ] @@ -125,7 +125,7 @@ ip6 test-ip6 output [ immediate reg 2 0x0000c800 ] [ redir proto_min reg 1 proto_max reg 2 ] -# tcp dport 39128 redirect to 993 +# tcp dport 39128 redirect to :993 ip6 test-ip6 output [ payload load 1b @ network header + 6 => reg 1 ] [ cmp eq reg 1 0x00000006 ] @@ -134,7 +134,7 @@ ip6 test-ip6 output [ immediate reg 1 0x0000e103 ] [ redir proto_min reg 1 ] -# tcp dport 9128 redirect to 993 random +# tcp dport 9128 redirect to :993 random ip6 test-ip6 output [ payload load 1b @ network header + 6 => reg 1 ] [ cmp eq reg 1 0x00000006 ] @@ -143,7 +143,7 @@ ip6 test-ip6 output [ immediate reg 1 0x0000e103 ] [ redir proto_min reg 1 flags 0x4 ] -# tcp dport 9128 redirect to 993 fully-random,persistent +# tcp dport 9128 redirect to :993 fully-random,persistent ip6 test-ip6 output [ payload load 1b @ network header + 6 => reg 1 ] [ cmp eq reg 1 0x00000006 ] @@ -191,7 +191,7 @@ ip6 test-ip6 output [ lookup reg 1 set __map%d dreg 0 ] [ redir ] -# ip6 nexthdr 6 redirect to tcp dport map { 22 : 8000, 80 : 8080} +# ip6 nexthdr 6 redirect to : tcp dport map { 22 : 8000, 80 : 8080} __map%d test-ip6 b __map%d test-ip6 0 element 00001600 : 0000401f 0 [end] element 00005000 : 0000901f 0 [end] |