diff options
author | Anatole Denis <anatole@rezel.net> | 2016-11-24 15:16:21 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-11-29 22:49:06 +0100 |
commit | 3883104bc3892dcc0a094804b3add83e0a08d68d (patch) | |
tree | 7e16b83e2198e2643e2d50ac258ae3b94137b27e /tests/py/ip/snat.t.payload | |
parent | cc7b37d18a687d53e8724b3104b042e6767a9cef (diff) |
tests/py: Unmask negative set lookup
Many testcases were masked because of bug #888. This series of patches unmasks
them
Signed-off-by: Anatole Denis <anatole@rezel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/ip/snat.t.payload')
-rw-r--r-- | tests/py/ip/snat.t.payload | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/py/ip/snat.t.payload b/tests/py/ip/snat.t.payload index 3d828a38..25a505c2 100644 --- a/tests/py/ip/snat.t.payload +++ b/tests/py/ip/snat.t.payload @@ -35,6 +35,20 @@ ip test-ip4 postrouting [ immediate reg 1 0x0203a8c0 ] [ nat snat ip addr_min reg 1 addr_max reg 0 ] +# iifname "eth0" tcp dport != {80, 90, 23} snat to 192.168.3.2 +__set%d test-ip4 3 +__set%d test-ip4 0 + element 00005000 : 0 [end] element 00005a00 : 0 [end] element 00001700 : 0 [end] +ip test-ip4 postrouting + [ meta load iifname => reg 1 ] + [ cmp eq reg 1 0x30687465 0x00000000 0x00000000 0x00000000 ] + [ payload load 1b @ network header + 9 => reg 1 ] + [ cmp eq reg 1 0x00000006 ] + [ payload load 2b @ transport header + 2 => reg 1 ] + [ lookup reg 1 set __set%d 0x1 ] + [ immediate reg 1 0x0203a8c0 ] + [ nat snat ip addr_min reg 1 addr_max reg 0 ] + # iifname "eth0" tcp dport != 23-34 snat to 192.168.3.2 ip test-ip4 postrouting [ meta load iifname => reg 1 ] |