summaryrefslogtreecommitdiffstats
path: root/tests/py/inet
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-03-07 21:05:56 +0100
committerFlorian Westphal <fw@strlen.de>2016-03-10 14:08:35 +0100
commitf0b32f868a43345c77b3852ed0b3fb0d5856bed4 (patch)
tree7183780252585a13da1e6212fc90d24ebb0e7276 /tests/py/inet
parentebb0dd15731d2782b6ade1a0904c2c8890e5b5aa (diff)
nft-test: don't zap remainder of rule after handling a set
Don't delete the part after the set, i.e. given chain input { type filter hook input priority 0; policy accept; vlan id { 1, 2, 4, 100, 4095} vlan pcp 1-3 } don't remove the vlan pcp 1-3 part. This exposes following bug: bridge/vlan.t: WARNING: line: 32: 'nft add rule --debug=netlink bridge test-bridge input vlan id { 1, 2, 4, 100, 4095 } vlan pcp 1-3': 'vlan id { 1, 2, 4, 100, 4095 } vlan pcp 1-3' mismatches 'vlan id { 4, 1, 2, 4095, 100} vlan pcp 0-0' We do not shift the range, so on reverse translation we get a 0-0 output. The bug will be fixes in a followup commit. Signed-off-by: Florian Westphal <fw@strlen.de> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/inet')
-rw-r--r--tests/py/inet/tcp.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/py/inet/tcp.t b/tests/py/inet/tcp.t
index f99035ed..9618e532 100644
--- a/tests/py/inet/tcp.t
+++ b/tests/py/inet/tcp.t
@@ -37,7 +37,7 @@ tcp sport 1024 tcp dport 22;ok
tcp sport 1024 tcp dport 22 tcp sequence 0;ok
tcp sequence 0 tcp sport 1024 tcp dport 22;ok;tcp sport 1024 tcp dport 22 tcp sequence 0
-tcp sequence 0 tcp sport { 1024, 1022} tcp dport 22;ok
+tcp sequence 0 tcp sport { 1024, 1022} tcp dport 22;ok;tcp sport { 1022, 1024} tcp dport 22 tcp sequence 0
tcp sequence 22;ok
tcp sequence != 233;ok