diff options
author | Florian Westphal <fw@strlen.de> | 2015-02-19 02:23:19 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2015-02-19 17:44:06 +0100 |
commit | e8a95271dc8598261957f9ed5472dfb9065bdd9e (patch) | |
tree | 75a10940d1d23eb92a588584c50c1f2fba61118a /extensions/libxt_TCPOPTSTRIP.t | |
parent | d81dc8e5f7e33646b3e56e274c46c3599275cbc1 (diff) |
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 <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'extensions/libxt_TCPOPTSTRIP.t')
-rw-r--r-- | extensions/libxt_TCPOPTSTRIP.t | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/extensions/libxt_TCPOPTSTRIP.t b/extensions/libxt_TCPOPTSTRIP.t new file mode 100644 index 00000000..b5c7a109 --- /dev/null +++ b/extensions/libxt_TCPOPTSTRIP.t @@ -0,0 +1,8 @@ +:PREROUTING,INPUT,FORWARD,OUTPUT,POSTROUTING +*mangle +-j TCPOPTSTRIP;;FAIL +-p tcp -j TCPOPTSTRIP;=;OK +-p tcp -j TCPOPTSTRIP --strip-options 2,3,4,5,6,7;=;OK +-p tcp -j TCPOPTSTRIP --strip-options 0;;FAIL +-p tcp -j TCPOPTSTRIP --strip-options 1;;FAIL +-p tcp -j TCPOPTSTRIP --strip-options 1,2;;FAIL |