From e8a95271dc8598261957f9ed5472dfb9065bdd9e Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Thu, 19 Feb 2015 02:23:19 +0100 Subject: extensions: add more test cases for iptables-test.py Instead of using iptables-save-formatted files in the tests/ dir, lets use the iptables-test.py framework for all matches/targets. This obsoletes tests/ completely, will be removed in followup patch. Suggested-by: Pablo Neira Ayuso Signed-off-by: Florian Westphal --- extensions/libipt_TTL.t | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 extensions/libipt_TTL.t (limited to 'extensions/libipt_TTL.t') diff --git a/extensions/libipt_TTL.t b/extensions/libipt_TTL.t new file mode 100644 index 00000000..36809792 --- /dev/null +++ b/extensions/libipt_TTL.t @@ -0,0 +1,10 @@ +:PREROUTING,INPUT,FORWARD,OUTPUT,POSTROUTING +*mangle +-j TTL --ttl-set 42;=;OK +-j TTL --ttl-inc 1;=;OK +-j TTL --ttl-dec 1;=;OK +-j TTL --ttl-set 256;;FAIL +-j TTL --ttl-inc 0;;FAIL +-j TTL --ttl-dec 0;;FAIL +-j TTL --ttl-dec 1 --ttl-inc 1;;FAIL +-j TTL --ttl-set --ttl-inc 1;;FAIL -- cgit v1.2.3