aboutsummaryrefslogtreecommitdiffstats
path: root/extensions/libxt_HMARK.t
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2017-03-24 06:34:41 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-03-24 06:34:41 +0000
commit3c9546c0d95e649f59e239b9a20ef398eb553774 (patch)
tree4400fe0ba9baae676633293796954b4061726d5d /extensions/libxt_HMARK.t
parent70bc36c5ebb934f094bd2135d0ff14280bcef024 (diff)
parente20d6bf62b07e455e15b3d8982fb83dc99b9e564 (diff)
downloadplatform_external_iptables-3c9546c0d95e649f59e239b9a20ef398eb553774.tar.gz
platform_external_iptables-3c9546c0d95e649f59e239b9a20ef398eb553774.tar.bz2
platform_external_iptables-3c9546c0d95e649f59e239b9a20ef398eb553774.zip
Merge changes from topic 'iptables-1.6.1' am: c784fc47e6 am: ff45753ae3
am: e20d6bf62b Change-Id: I7f42039a088b89201367df2b0a926fcd88987776
Diffstat (limited to 'extensions/libxt_HMARK.t')
-rw-r--r--extensions/libxt_HMARK.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/extensions/libxt_HMARK.t b/extensions/libxt_HMARK.t
new file mode 100644
index 00000000..3bcf1dad
--- /dev/null
+++ b/extensions/libxt_HMARK.t
@@ -0,0 +1,8 @@
+:INPUT,FORWARD,OUTPUT
+-j HMARK;;FAIL
+-j HMARK --hmark-src-prefix 32 --hmark-rnd 0x00000004 --hmark-mod 42;=;OK
+-j HMARK --hmark-src-prefix 32 --hmark-dst-prefix 32 --hmark-sport-mask 0xffff --hmark-dport-mask 0xffff --hmark-proto-mask 0xffff --hmark-rnd 0x00000004 --hmark-mod 42 --hmark-offset 1 --hmark-tuple ct;=;OK
+-j HMARK --hmark-src-prefix 32 --hmark-dst-prefix 32 --hmark-spi-mask 0x00000004 --hmark-proto-mask 0xffff --hmark-rnd 0x00000004 --hmark-mod 42 --hmark-offset 1 --hmark-tuple ct;=;OK
+-j HMARK --hmark-src-prefix 1 --hmark-dst-prefix 2 --hmark-sport-mask 0x0003 --hmark-dport-mask 0x0004 --hmark-proto-mask 0x05 --hmark-rnd 0x00000004 --hmark-mod 42 --hmark-offset 1 --hmark-tuple ct;=;OK
+# cannot mix in spi mask:
+-j HMARK --hmark-src-prefix 32 --hmark-dst-prefix 32 --hmark-sport-mask 0xffff --hmark-dport-mask 0xffff --hmark-proto-mask 0xffff --hmark-rnd 0x00000004 --hmark-mod 42 --hmark-offset 1 --hmark-tuple ct --hmark-spi-mask 4;;FAIL