diff options
Diffstat (limited to 'tests/py/ip/masquerade.t.payload')
-rw-r--r-- | tests/py/ip/masquerade.t.payload | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/py/ip/masquerade.t.payload b/tests/py/ip/masquerade.t.payload index 9390f0cf..2479c8c9 100644 --- a/tests/py/ip/masquerade.t.payload +++ b/tests/py/ip/masquerade.t.payload @@ -125,3 +125,18 @@ ip test-ip4 postrouting [ lookup reg 1 set map%d dreg 0 ] [ masq ] +# ip protocol 6 masquerade to :1024 +ip test-ip4 postrouting + [ payload load 1b @ network header + 9 => reg 1 ] + [ cmp eq reg 1 0x00000006 ] + [ immediate reg 1 0x00000004 ] + [ masq proto_min reg 1 proto_max reg 0 ] + +# ip protocol 6 masquerade to :1024-2048 +ip test-ip4 postrouting + [ payload load 1b @ network header + 9 => reg 1 ] + [ cmp eq reg 1 0x00000006 ] + [ immediate reg 1 0x00000004 ] + [ immediate reg 2 0x00000008 ] + [ masq proto_min reg 1 proto_max reg 2 ] + |