aboutsummaryrefslogtreecommitdiffstats
path: root/extensions/libipt_ttl.t
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2017-03-24 06:32:41 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-03-24 06:32:41 +0000
commite20d6bf62b07e455e15b3d8982fb83dc99b9e564 (patch)
tree4400fe0ba9baae676633293796954b4061726d5d /extensions/libipt_ttl.t
parenta1ffd5ecfa5d72c6dc4cfaf11653d61e3e9083bc (diff)
parentff45753ae3c3108c6c93ec132f7cf62190f9c628 (diff)
downloadplatform_external_iptables-e20d6bf62b07e455e15b3d8982fb83dc99b9e564.tar.gz
platform_external_iptables-e20d6bf62b07e455e15b3d8982fb83dc99b9e564.tar.bz2
platform_external_iptables-e20d6bf62b07e455e15b3d8982fb83dc99b9e564.zip
Merge changes from topic 'iptables-1.6.1' am: c784fc47e6
am: ff45753ae3 Change-Id: Ic463667ae6ac346f8eae4b6ca18888dcd24b9d6d
Diffstat (limited to 'extensions/libipt_ttl.t')
-rw-r--r--extensions/libipt_ttl.t15
1 files changed, 15 insertions, 0 deletions
diff --git a/extensions/libipt_ttl.t b/extensions/libipt_ttl.t
new file mode 100644
index 00000000..ebe5b3a2
--- /dev/null
+++ b/extensions/libipt_ttl.t
@@ -0,0 +1,15 @@
+:INPUT,FORWARD,OUTPUT
+-m ttl --ttl-eq 0;=;OK
+-m ttl --ttl-eq 255;=;OK
+-m ttl ! --ttl-eq 0;=;OK
+-m ttl ! --ttl-eq 255;=;OK
+-m ttl --ttl-gt 0;=;OK
+# not possible have anything greater than 255, TTL is 8-bit long
+# ERROR: should fail: iptables -A INPUT -m ttl --ttl-gt 255
+## -m ttl --ttl-gt 255;;FAIL
+# not possible have anything below 0
+# ERROR: should fail: iptables -A INPUT -m ttl --ttl-lt 0
+## -m ttl --ttl-lt 0;;FAIL
+-m ttl --ttl-eq 256;;FAIL
+-m ttl --ttl-eq -1;;FAIL
+-m ttl;;FAIL