diff mbox

[2/2] examples: ipsec: add run scripts for tunnel mode

Message ID 1431344921-30393-1-git-send-email-alexandru.badicioiu@linaro.org
State New
Headers show

Commit Message

Alexandru Badicioiu May 11, 2015, 11:48 a.m. UTC
From: Alexandru Badicioiu <alexandru.badicioiu@linaro.org>

Signed-off-by: Alexandru Badicioiu <alexandru.badicioiu@linaro.org>
---
 example/ipsec/run_ah_in_tun    |   13 +++++++++++++
 example/ipsec/run_ah_out_tun   |   13 +++++++++++++
 example/ipsec/run_both_in_tun  |   15 +++++++++++++++
 example/ipsec/run_both_out_tun |   15 +++++++++++++++
 example/ipsec/run_esp_in_tun   |   14 ++++++++++++++
 example/ipsec/run_esp_out_tun  |   14 ++++++++++++++
 6 files changed, 84 insertions(+), 0 deletions(-)
 create mode 100755 example/ipsec/run_ah_in_tun
 create mode 100755 example/ipsec/run_ah_out_tun
 create mode 100755 example/ipsec/run_both_in_tun
 create mode 100755 example/ipsec/run_both_out_tun
 create mode 100755 example/ipsec/run_esp_in_tun
 create mode 100755 example/ipsec/run_esp_out_tun
diff mbox

Patch

diff --git a/example/ipsec/run_ah_in_tun b/example/ipsec/run_ah_in_tun
new file mode 100755
index 0000000..66267e5
--- /dev/null
+++ b/example/ipsec/run_ah_in_tun
@@ -0,0 +1,13 @@ 
+#!/bin/bash
+#
+# Test input AH
+#  - 2 loop interfaces
+#  - 10 packets
+#  - Specify API mode on command line
+odp_ipsec -i loop1,loop2 \
+-r 192.168.111.2/32:loop1:08.00.27.76.B5.E0 \
+-p 192.168.222.0/24:192.168.111.0/24:in:ah \
+-a 192.168.222.2:192.168.111.2:md5:300:27f6d123d7077b361662fc6e451f65d8 \
+-t 192.168.222.2:192.168.111.2:192.168.100.2:192.168.100.1 \
+-s 192.168.222.2:192.168.111.2:loop2:loop1:10:100 \
+-c 2 -m $1
diff --git a/example/ipsec/run_ah_out_tun b/example/ipsec/run_ah_out_tun
new file mode 100755
index 0000000..3497538
--- /dev/null
+++ b/example/ipsec/run_ah_out_tun
@@ -0,0 +1,13 @@ 
+#!/bin/bash
+#
+# Test output AH
+#  - 2 loop interfaces
+#  - 10 packets
+#  - Specify API mode on command line
+odp_ipsec -i loop1,loop2 \
+-r 192.168.222.2/32:loop2:08.00.27.F5.8B.DB \
+-p 192.168.111.0/24:192.168.222.0/24:out:ah \
+-a 192.168.111.2:192.168.222.2:md5:200:a731649644c5dee92cbd9c2e7e188ee6 \
+-t 192.168.111.2:192.168.222.2:192.168.100.1:192.168.100.2 \
+-s 192.168.111.2:192.168.222.2:loop1:loop2:10:100 \
+-c 2 -m $1
diff --git a/example/ipsec/run_both_in_tun b/example/ipsec/run_both_in_tun
new file mode 100755
index 0000000..5211dd1
--- /dev/null
+++ b/example/ipsec/run_both_in_tun
@@ -0,0 +1,15 @@ 
+#!/bin/bash
+#
+# Test AH and ESP input
+#  - 2 loop interfaces
+#  - 10 packets
+#  - Specify API mode on command line
+odp_ipsec -i loop1,loop2 \
+-r 192.168.111.2/32:loop1:08.00.27.76.B5.E0 \
+-p 192.168.222.0/24:192.168.111.0/24:in:both \
+-a 192.168.222.2:192.168.111.2:md5:300:27f6d123d7077b361662fc6e451f65d8 \
+-e 192.168.222.2:192.168.111.2:\
+3des:301:c966199f24d095f3990a320d749056401e82b26570320292 \
+-t 192.168.222.2:192.168.111.2:192.168.100.2:192.168.100.1 \
+-s 192.168.222.2:192.168.111.2:loop2:loop1:10:100 \
+-c 2 -m $1
diff --git a/example/ipsec/run_both_out_tun b/example/ipsec/run_both_out_tun
new file mode 100755
index 0000000..f385c42
--- /dev/null
+++ b/example/ipsec/run_both_out_tun
@@ -0,0 +1,15 @@ 
+#!/bin/bash
+#
+# Test AH and ESP output
+#  - 2 loop interfaces
+#  - 10 packets
+#  - Specify API mode on command line
+odp_ipsec -i loop1,loop2 \
+-r 192.168.222.2/32:loop2:08.00.27.F5.8B.DB \
+-p 192.168.111.0/24:192.168.222.0/24:out:both \
+-e 192.168.111.2:192.168.222.2:\
+3des:201:656c8523255ccc23a66c1917aa0cf30991fce83532a4b224 \
+-a 192.168.111.2:192.168.222.2:md5:200:a731649644c5dee92cbd9c2e7e188ee6 \
+-t 192.168.111.2:192.168.222.2:192.168.100.1:192.168.200.2 \
+-s 192.168.111.2:192.168.222.2:loop1:loop2:10:100 \
+-c 2 -m $1
diff --git a/example/ipsec/run_esp_in_tun b/example/ipsec/run_esp_in_tun
new file mode 100755
index 0000000..9f2ecd6
--- /dev/null
+++ b/example/ipsec/run_esp_in_tun
@@ -0,0 +1,14 @@ 
+#!/bin/bash
+#
+# Test input ESP
+#  - 2 loop interfaces
+#  - 10 packets
+#  - Specify API mode on command line
+odp_ipsec -i loop1,loop2 \
+-r 192.168.111.2/32:loop1:08.00.27.76.B5.E0 \
+-p 192.168.222.0/24:192.168.111.0/24:in:esp \
+-e 192.168.222.2:192.168.111.2:\
+3des:301:c966199f24d095f3990a320d749056401e82b26570320292 \
+-t 192.168.222.2:192.168.111.2:192.168.100.2:192.168.100.1 \
+-s 192.168.222.2:192.168.111.2:loop2:loop1:10:100 \
+-c 2 -m $1
diff --git a/example/ipsec/run_esp_out_tun b/example/ipsec/run_esp_out_tun
new file mode 100755
index 0000000..d02e9cc
--- /dev/null
+++ b/example/ipsec/run_esp_out_tun
@@ -0,0 +1,14 @@ 
+#!/bin/bash
+#
+# Test output ESP
+#  - 2 loop interfaces
+#  - 10 packets
+#  - Specify API mode on command line
+odp_ipsec -i loop1,loop2 \
+-r 192.168.222.2/32:loop2:08.00.27.F5.8B.DB \
+-p 192.168.111.0/24:192.168.222.0/24:out:esp \
+-e 192.168.111.2:192.168.222.2:\
+3des:201:656c8523255ccc23a66c1917aa0cf30991fce83532a4b224 \
+-t 192.168.111.2:192.168.222.2:192.168.100.1:192.168.100.2 \
+-s 192.168.111.2:192.168.222.2:loop1:loop2:10:100 \
+-c 2 -m $1