path: root/extensions/libxt_policy.t
diff options
authorHarsha Sharma <>2018-02-06 23:33:30 +0530
committerPablo Neira Ayuso <>2018-02-25 20:18:29 +0100
commited928a8302aa7a531987ff8120950c44bfcab700 (patch)
tree99f8790577b8ed1a5bc01d151eeb31d5d75dd1ab /extensions/libxt_policy.t
parent632ace7c2947dbb70f74ea263b86ff68de391622 (diff)
extensions: add tests for comp match options
This patch adds test for ipcomp flow match specified by its SPI value and move tests for ipcomp protocol to libxt_policy.t Signed-off-by: Harsha Sharma <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'extensions/libxt_policy.t')
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/libxt_policy.t b/extensions/libxt_policy.t
index 24a3e2f4..6524122b 100644
--- a/extensions/libxt_policy.t
+++ b/extensions/libxt_policy.t
@@ -1,5 +1,8 @@
-m policy --dir in --pol ipsec;=;OK
+-m policy --dir in --pol ipsec --proto ipcomp;=;OK
-m policy --dir in --pol ipsec --strict;;FAIL
+-m policy --dir in --pol ipsec --strict --reqid 1 --spi 0x1 --proto ipcomp;=;OK
-m policy --dir in --pol ipsec --strict --reqid 1 --spi 0x1 --proto esp --mode tunnel --tunnel-dst --tunnel-src --next --reqid 2;=;OK
-m policy --dir in --pol ipsec --strict --reqid 1 --spi 0x1 --proto esp --tunnel-dst;;FAIL
+-m policy --dir in --pol ipsec --strict --reqid 1 --spi 0x1 --proto ipcomp --mode tunnel --tunnel-dst --tunnel-src --next --reqid 2;=;OK