summaryrefslogtreecommitdiffstats
path: root/tests/py/ip6/masquerade.t.payload.ip6
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2016-03-03 20:07:07 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2016-03-03 20:09:00 +0100
commita31c57f120e447511a2034e2a11a4b2dfee70728 (patch)
tree3dd4fe6b406e5c18424e94c9b0338098e7ff0701 /tests/py/ip6/masquerade.t.payload.ip6
parent3fb3bb60337483c6dd578a4ae4ffccf4829b726e (diff)
tests/py: extend masquerade to cover ports too
Tests new masquerade port range support (available since 4.6-rc). Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/ip6/masquerade.t.payload.ip6')
-rw-r--r--tests/py/ip6/masquerade.t.payload.ip615
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/py/ip6/masquerade.t.payload.ip6 b/tests/py/ip6/masquerade.t.payload.ip6
index 2e8bf959..778e709e 100644
--- a/tests/py/ip6/masquerade.t.payload.ip6
+++ b/tests/py/ip6/masquerade.t.payload.ip6
@@ -125,3 +125,18 @@ ip6 test-ip6 postrouting
[ lookup reg 1 set map%d dreg 0 ]
[ masq ]
+# meta l4proto 6 masquerade to :1024
+ip6 test-ip6 postrouting
+ [ meta load l4proto => reg 1 ]
+ [ cmp eq reg 1 0x00000006 ]
+ [ immediate reg 1 0x00000004 ]
+ [ masq proto_min reg 1 proto_max reg 0 ]
+
+# meta l4proto 6 masquerade to :1024-2048
+ip6 test-ip6 postrouting
+ [ meta load l4proto => reg 1 ]
+ [ cmp eq reg 1 0x00000006 ]
+ [ immediate reg 1 0x00000004 ]
+ [ immediate reg 2 0x00000008 ]
+ [ masq proto_min reg 1 proto_max reg 2 ]
+