From patchwork Wed Jul 13 18:53:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 71964 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1156195qga; Wed, 13 Jul 2016 12:04:53 -0700 (PDT) X-Received: by 10.36.46.133 with SMTP id i127mr22986033ita.69.1468436693024; Wed, 13 Jul 2016 12:04:53 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id t8si18766610ita.115.2016.07.13.12.04.52; Wed, 13 Jul 2016 12:04:53 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 7EADB68609; Wed, 13 Jul 2016 19:04:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id C0E58681B5; Wed, 13 Jul 2016 19:04:10 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id B5F766821E; Wed, 13 Jul 2016 19:04:04 +0000 (UTC) Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) by lists.linaro.org (Postfix) with ESMTPS id 502F16850A for ; Wed, 13 Jul 2016 19:03:34 +0000 (UTC) Received: by mail-lf0-f50.google.com with SMTP id b199so46372422lfe.0 for ; Wed, 13 Jul 2016 12:03:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MkFi0Tu4I9rrv/N5fht9ldN2Sm4PdIOxzRCUv/diekA=; b=N5L55/obKE8PW7lEzEEq+v2vwzSEokFMkXFgiFqsswQQ0hmt5cNp/xG8NzYZZLRp3V OGe37ebUXD9Ukv2x3c13lgztKLk0KNsV4xxjMse/Jkzyx6BUlAIAyv01CiZF+e2+q45V PH/KGBzuVgMsKPAtqXGqCl3o8jnnUxtrj7Ei+b0hK7U20IBXfphhALSSRH/Q7NBelumO 2ttsQKWmnN+ygUfCZ0LVPNSMNLlixOp0Q5v1NNkuvx2GYb63UWvIHmbiTiF3WCY6nSV1 e02WMEOVOR6soQaPIgcd6fpa3U2H99veaICsYttlTafnZGhokCrcYQZc02M11Zrh9ayK gxRg== X-Gm-Message-State: ALyK8tK1rte/cLa+YxrdIb/1Jn6cmqJCNyQu7KxHm6otQLsCAR5GdMAtk0ZuB/x+1/U6BdP7mQs= X-Received: by 10.25.213.213 with SMTP id m204mr5162783lfg.52.1468436612956; Wed, 13 Jul 2016 12:03:32 -0700 (PDT) Received: from localhost (c-c82171d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.113.33.200]) by smtp.gmail.com with ESMTPSA id o10sm2210534lfo.47.2016.07.13.12.03.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jul 2016 12:03:32 -0700 (PDT) From: Anders Roxell To: mike.holmes@linaro.org Date: Wed, 13 Jul 2016 20:53:12 +0200 Message-Id: <1468435992-24667-4-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1468435992-24667-1-git-send-email-anders.roxell@linaro.org> References: <1468435992-24667-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Cc: lng-odp@lists.linaro.org Subject: [lng-odp] [PATCH 3/3] example/ipsec: scope ipsec examples X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Signed-off-by: Anders Roxell --- example/ipsec/Makefile.am | 18 +++++++++--------- example/ipsec/odp_ipsec_run_ah_in | 12 ++++++++++++ example/ipsec/odp_ipsec_run_ah_out | 12 ++++++++++++ example/ipsec/odp_ipsec_run_both_in | 14 ++++++++++++++ example/ipsec/odp_ipsec_run_both_out | 14 ++++++++++++++ example/ipsec/odp_ipsec_run_esp_in | 13 +++++++++++++ example/ipsec/odp_ipsec_run_esp_out | 13 +++++++++++++ example/ipsec/odp_ipsec_run_live | 17 +++++++++++++++++ example/ipsec/odp_ipsec_run_router | 9 +++++++++ example/ipsec/odp_ipsec_run_simple | 10 ++++++++++ example/ipsec/run_ah_in | 12 ------------ example/ipsec/run_ah_out | 12 ------------ example/ipsec/run_both_in | 14 -------------- example/ipsec/run_both_out | 14 -------------- example/ipsec/run_esp_in | 13 ------------- example/ipsec/run_esp_out | 13 ------------- example/ipsec/run_live | 17 ----------------- example/ipsec/run_router | 9 --------- example/ipsec/run_simple | 10 ---------- 19 files changed, 123 insertions(+), 123 deletions(-) create mode 100755 example/ipsec/odp_ipsec_run_ah_in create mode 100755 example/ipsec/odp_ipsec_run_ah_out create mode 100755 example/ipsec/odp_ipsec_run_both_in create mode 100755 example/ipsec/odp_ipsec_run_both_out create mode 100755 example/ipsec/odp_ipsec_run_esp_in create mode 100755 example/ipsec/odp_ipsec_run_esp_out create mode 100755 example/ipsec/odp_ipsec_run_live create mode 100755 example/ipsec/odp_ipsec_run_router create mode 100755 example/ipsec/odp_ipsec_run_simple delete mode 100755 example/ipsec/run_ah_in delete mode 100755 example/ipsec/run_ah_out delete mode 100755 example/ipsec/run_both_in delete mode 100755 example/ipsec/run_both_out delete mode 100755 example/ipsec/run_esp_in delete mode 100755 example/ipsec/run_esp_out delete mode 100755 example/ipsec/run_live delete mode 100755 example/ipsec/run_router delete mode 100755 example/ipsec/run_simple -- 2.1.4 diff --git a/example/ipsec/Makefile.am b/example/ipsec/Makefile.am index c82ea0a..01ccd42 100644 --- a/example/ipsec/Makefile.am +++ b/example/ipsec/Makefile.am @@ -15,15 +15,15 @@ noinst_HEADERS = \ $(top_srcdir)/example/example_debug.h dist_bin_SCRIPTS = \ - $(srcdir)/run_ah_in \ - $(srcdir)/run_ah_out \ - $(srcdir)/run_both_in \ - $(srcdir)/run_both_out \ - $(srcdir)/run_esp_in \ - $(srcdir)/run_esp_out \ - $(srcdir)/run_live \ - $(srcdir)/run_router \ - $(srcdir)/run_simple + $(srcdir)/odp_ipsec_run_ah_in \ + $(srcdir)/odp_ipsec_run_ah_out \ + $(srcdir)/odp_ipsec_run_both_in \ + $(srcdir)/odp_ipsec_run_both_out \ + $(srcdir)/odp_ipsec_run_esp_in \ + $(srcdir)/odp_ipsec_run_esp_out \ + $(srcdir)/odp_ipsec_run_live \ + $(srcdir)/odp_ipsec_run_router \ + $(srcdir)/odp_ipsec_run_simple dist_odp_ipsec_SOURCES = odp_ipsec.c \ odp_ipsec_sa_db.c \ diff --git a/example/ipsec/odp_ipsec_run_ah_in b/example/ipsec/odp_ipsec_run_ah_in new file mode 100755 index 0000000..252f44b --- /dev/null +++ b/example/ipsec/odp_ipsec_run_ah_in @@ -0,0 +1,12 @@ +#!/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 \ +-s 192.168.222.2:192.168.111.2:loop2:loop1:10:100 \ +-c 2 -m $1 diff --git a/example/ipsec/odp_ipsec_run_ah_out b/example/ipsec/odp_ipsec_run_ah_out new file mode 100755 index 0000000..9256c07 --- /dev/null +++ b/example/ipsec/odp_ipsec_run_ah_out @@ -0,0 +1,12 @@ +#!/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 \ +-s 192.168.111.2:192.168.222.2:loop1:loop2:10:100 \ +-c 2 -m $1 diff --git a/example/ipsec/odp_ipsec_run_both_in b/example/ipsec/odp_ipsec_run_both_in new file mode 100755 index 0000000..c3f169c --- /dev/null +++ b/example/ipsec/odp_ipsec_run_both_in @@ -0,0 +1,14 @@ +#!/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 \ +-s 192.168.222.2:192.168.111.2:loop2:loop1:10:100 \ +-c 2 -m $1 diff --git a/example/ipsec/odp_ipsec_run_both_out b/example/ipsec/odp_ipsec_run_both_out new file mode 100755 index 0000000..8ba0672 --- /dev/null +++ b/example/ipsec/odp_ipsec_run_both_out @@ -0,0 +1,14 @@ +#!/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 \ +-s 192.168.111.2:192.168.222.2:loop1:loop2:10:100 \ +-c 2 -m $1 diff --git a/example/ipsec/odp_ipsec_run_esp_in b/example/ipsec/odp_ipsec_run_esp_in new file mode 100755 index 0000000..12fdae6 --- /dev/null +++ b/example/ipsec/odp_ipsec_run_esp_in @@ -0,0 +1,13 @@ +#!/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 \ +-s 192.168.222.2:192.168.111.2:loop2:loop1:10:100 \ +-c 2 -m $1 diff --git a/example/ipsec/odp_ipsec_run_esp_out b/example/ipsec/odp_ipsec_run_esp_out new file mode 100755 index 0000000..73c4ff0 --- /dev/null +++ b/example/ipsec/odp_ipsec_run_esp_out @@ -0,0 +1,13 @@ +#!/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 \ +-s 192.168.111.2:192.168.222.2:loop1:loop2:10:100 \ +-c 2 -m $1 diff --git a/example/ipsec/odp_ipsec_run_live b/example/ipsec/odp_ipsec_run_live new file mode 100755 index 0000000..90947ad --- /dev/null +++ b/example/ipsec/odp_ipsec_run_live @@ -0,0 +1,17 @@ +#!/bin/bash +# +# Live router test +# - 2 interfaces interfaces +# - Specify API mode on command line +sudo odp_ipsec -i p7p1,p8p1 \ +-r 192.168.111.2/32:p7p1:08.00.27.76.B5.E0 \ +-r 192.168.222.2/32:p8p1: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 \ +-p 192.168.222.0/24:192.168.111.0/24:in:both \ +-e 192.168.222.2:192.168.111.2:\ +3des:301:c966199f24d095f3990a320d749056401e82b26570320292 \ +-a 192.168.222.2:192.168.111.2:md5:300:27f6d123d7077b361662fc6e451f65d8 \ +-c 2 -m $1 diff --git a/example/ipsec/odp_ipsec_run_router b/example/ipsec/odp_ipsec_run_router new file mode 100755 index 0000000..3630297 --- /dev/null +++ b/example/ipsec/odp_ipsec_run_router @@ -0,0 +1,9 @@ +#!/bin/bash +# +# Live router test +# - 2 interfaces interfaces +# - Specify API mode on command line +sudo odp_ipsec -i p7p1,p8p1 \ +-r 192.168.111.2/32:p7p1:08.00.27.76.B5.E0 \ +-r 192.168.222.2/32:p8p1:08.00.27.F5.8B.DB \ +-c 1 -m $1 diff --git a/example/ipsec/odp_ipsec_run_simple b/example/ipsec/odp_ipsec_run_simple new file mode 100755 index 0000000..1211583 --- /dev/null +++ b/example/ipsec/odp_ipsec_run_simple @@ -0,0 +1,10 @@ +#!/bin/bash +# +# Simple router test +# - 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 \ +-s 192.168.111.2:192.168.222.2:loop1:loop2:10:100 \ +-c 2 -m $1 diff --git a/example/ipsec/run_ah_in b/example/ipsec/run_ah_in deleted file mode 100755 index 252f44b..0000000 --- a/example/ipsec/run_ah_in +++ /dev/null @@ -1,12 +0,0 @@ -#!/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 \ --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 b/example/ipsec/run_ah_out deleted file mode 100755 index 9256c07..0000000 --- a/example/ipsec/run_ah_out +++ /dev/null @@ -1,12 +0,0 @@ -#!/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 \ --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 b/example/ipsec/run_both_in deleted file mode 100755 index c3f169c..0000000 --- a/example/ipsec/run_both_in +++ /dev/null @@ -1,14 +0,0 @@ -#!/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 \ --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 b/example/ipsec/run_both_out deleted file mode 100755 index 8ba0672..0000000 --- a/example/ipsec/run_both_out +++ /dev/null @@ -1,14 +0,0 @@ -#!/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 \ --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 b/example/ipsec/run_esp_in deleted file mode 100755 index 12fdae6..0000000 --- a/example/ipsec/run_esp_in +++ /dev/null @@ -1,13 +0,0 @@ -#!/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 \ --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 b/example/ipsec/run_esp_out deleted file mode 100755 index 73c4ff0..0000000 --- a/example/ipsec/run_esp_out +++ /dev/null @@ -1,13 +0,0 @@ -#!/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 \ --s 192.168.111.2:192.168.222.2:loop1:loop2:10:100 \ --c 2 -m $1 diff --git a/example/ipsec/run_live b/example/ipsec/run_live deleted file mode 100755 index 90947ad..0000000 --- a/example/ipsec/run_live +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -# -# Live router test -# - 2 interfaces interfaces -# - Specify API mode on command line -sudo odp_ipsec -i p7p1,p8p1 \ --r 192.168.111.2/32:p7p1:08.00.27.76.B5.E0 \ --r 192.168.222.2/32:p8p1: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 \ --p 192.168.222.0/24:192.168.111.0/24:in:both \ --e 192.168.222.2:192.168.111.2:\ -3des:301:c966199f24d095f3990a320d749056401e82b26570320292 \ --a 192.168.222.2:192.168.111.2:md5:300:27f6d123d7077b361662fc6e451f65d8 \ --c 2 -m $1 diff --git a/example/ipsec/run_router b/example/ipsec/run_router deleted file mode 100755 index 3630297..0000000 --- a/example/ipsec/run_router +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -# -# Live router test -# - 2 interfaces interfaces -# - Specify API mode on command line -sudo odp_ipsec -i p7p1,p8p1 \ --r 192.168.111.2/32:p7p1:08.00.27.76.B5.E0 \ --r 192.168.222.2/32:p8p1:08.00.27.F5.8B.DB \ --c 1 -m $1 diff --git a/example/ipsec/run_simple b/example/ipsec/run_simple deleted file mode 100755 index 1211583..0000000 --- a/example/ipsec/run_simple +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -# -# Simple router test -# - 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 \ --s 192.168.111.2:192.168.222.2:loop1:loop2:10:100 \ --c 2 -m $1