diff mbox series

extensions: add tests for ipcomp protocol

Message ID 20171023042316.4278-1-harshasharmaiitr@gmail.com
State Accepted
Delegated to: Pablo Neira
Headers show
Series extensions: add tests for ipcomp protocol | expand

Commit Message

Harsha Sharma Oct. 23, 2017, 4:23 a.m. UTC
This patch adds test for ipcomp protocol.

Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com>
---
 extensions/libxt_ipcomp.t | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100644 extensions/libxt_ipcomp.t

Comments

Pablo Neira Ayuso Oct. 24, 2017, 4:13 p.m. UTC | #1
On Mon, Oct 23, 2017 at 09:53:16AM +0530, Harsha Sharma wrote:
> This patch adds test for ipcomp protocol.

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox series

Patch

diff --git a/extensions/libxt_ipcomp.t b/extensions/libxt_ipcomp.t
new file mode 100644
index 00000000..ce111142
--- /dev/null
+++ b/extensions/libxt_ipcomp.t
@@ -0,0 +1,5 @@ 
+:INPUT,FORWARD
+-m policy --dir in --pol ipsec --proto ipcomp;=;OK
+-m policy --dir in --pol none --proto ipcomp;;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 ipcomp --mode tunnel --tunnel-dst 10.0.0.0/8 --tunnel-src 10.0.0.0/8 --next --reqid 2;=;OK