summaryrefslogtreecommitdiffstats
path: root/tests/hash:ip6,mark.t
diff options
context:
space:
mode:
authorVytas Dauksa <vytas.dauksa@smoothwall.net>2013-12-17 14:01:44 +0000
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2014-01-23 07:12:51 +0100
commit2dfb973c0dcc6d22113e2370f461f1733035baaf (patch)
treef07f9273a8b91c7ec45e871baf914608b8972033 /tests/hash:ip6,mark.t
parent14ea38fca9e40df4f172a573c222591b5f3cc241 (diff)
add markmask for hash:ip,mark data type
Introduce packet mark mask for hash:ip,mark data type. This allows to set mark bit filter for the ip set. Change-Id: Id8dd9ca7e64477c4f7b022a1d9c1a5b187f1c96e Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Diffstat (limited to 'tests/hash:ip6,mark.t')
-rw-r--r--tests/hash:ip6,mark.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/hash:ip6,mark.t b/tests/hash:ip6,mark.t
index bc7757b..5c243fa 100644
--- a/tests/hash:ip6,mark.t
+++ b/tests/hash:ip6,mark.t
@@ -224,4 +224,14 @@
0 ./check_extensions test 2::20 700 13 12479
# Counters and timeout: destroy set
0 ipset x test
+# Create a set with 65502 ( 0x0000FFDE ) markmask
+0 ipset create test hash:ip,mark family inet6 markmask 0x0000FFDE
+# Add first value with 86111010 ( 0x0521F322 ) mark
+0 ipset add test 2:1::1,0x0521F322
+# Test last entry mark was modified to 62210 ( 0x0000F302 )
+0 ipset test test 2:1::1,0x0000F302
+# Test that mask is applied for tests as well
+0 ipset test test 2:1::1,0x0521F322
+# Destroy set
+0 ipset x test
# eof