summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/icmp.t
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2020-12-09 18:31:41 +0100
committerFlorian Westphal <fw@strlen.de>2020-12-09 18:33:53 +0100
commit2aa0f63aacd31b1a997921e68e87db92ada53fdb (patch)
tree84ce6343965ed4ba9e72b1e239f16b05f42b61ad /tests/py/ip/icmp.t
parent53cb4815a1ef87118531a78569412159554a1672 (diff)
tests: ip: add one test case to cover both id and sequence
These are two 2-byte matches, so nft will merge the accesses to a single 4-byte load+compare. Check this is properly demangled. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/ip/icmp.t')
-rw-r--r--tests/py/ip/icmp.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/py/ip/icmp.t b/tests/py/ip/icmp.t
index e81aeca7..996e1fc3 100644
--- a/tests/py/ip/icmp.t
+++ b/tests/py/ip/icmp.t
@@ -59,6 +59,7 @@ icmp sequence { 33, 55, 67, 88};ok;icmp type { echo-request, echo-reply} icmp se
icmp sequence != { 33, 55, 67, 88};ok;icmp type { echo-request, echo-reply} icmp sequence != { 33, 55, 67, 88}
icmp sequence { 33-55};ok;icmp type { echo-request, echo-reply} icmp sequence { 33-55}
icmp sequence != { 33-55};ok;icmp type { echo-request, echo-reply} icmp sequence != { 33-55}
+icmp id 1 icmp sequence 2;ok;icmp type { echo-reply, echo-request} icmp id 1 icmp sequence 2
icmp mtu 33;ok
icmp mtu 22-33;ok
@@ -83,3 +84,4 @@ icmp gateway { 33-55};ok
icmp gateway != { 33-55};ok
icmp gateway != 34;ok
icmp gateway != { 333, 334};ok
+