From patchwork Mon May 11 11:48:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Badicioiu X-Patchwork-Id: 48273 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8854A2121F for ; Mon, 11 May 2015 11:51:12 +0000 (UTC) Received: by wiz9 with SMTP id 9sf9392020wiz.3 for ; Mon, 11 May 2015 04:51:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:mime-version:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=aTxyj2KueIdld5Q3rtcXz5+YBEn88EtktEPuVQL4Ay4=; b=PlKgEtZZgeSR0FDGexnyijQa5nxwgoNKbIldKATHyJASmbc7QVZitkVP63iFmVTVlZ yhg/rUg3QqMsR7lwVdZj8RZDygF2Fa9eb5b49SaNBJecHYAWVKvbJqQEYgwo6ICJ2kac 0SZUA5nK4AW4hLdCOQT/SAZlrvmXPpx+LyU20uCQNrb4sj69Jy1lyNgCWMq9L+TqeNUL F0s2c64+V70I6KPDdPJmyIM/dgY8aIq7Ifuvg936Xu5+FOzuP7gmXVQ0YatdoCBId96R Pn6PDRg5/5DXJUP/QJ+tNchBtSZBWTClH4J8+C0u5GP6kim3e3PPCM/CJaZUIjrFsCyx 3BEQ== X-Gm-Message-State: ALoCoQkexxzsW2Rf50qzB9byX9qqL4XFsF15SgkXnf50VAgTmdraxAM4zc24whh+PX3al8QyezR7 X-Received: by 10.180.97.9 with SMTP id dw9mr7389915wib.2.1431345071916; Mon, 11 May 2015 04:51:11 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.81 with SMTP id v17ls707622laz.2.gmail; Mon, 11 May 2015 04:51:11 -0700 (PDT) X-Received: by 10.152.22.72 with SMTP id b8mr7818322laf.1.1431345071753; Mon, 11 May 2015 04:51:11 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id a15si8230201lbq.57.2015.05.11.04.51.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 May 2015 04:51:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbbzk7 with SMTP id zk7so91904594lbb.0 for ; Mon, 11 May 2015 04:51:11 -0700 (PDT) X-Received: by 10.152.4.137 with SMTP id k9mr7689123lak.29.1431345071640; Mon, 11 May 2015 04:51:11 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp1458126lbb; Mon, 11 May 2015 04:51:10 -0700 (PDT) X-Received: by 10.55.43.213 with SMTP id r82mr20868529qkr.76.1431345069560; Mon, 11 May 2015 04:51:09 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id z31si12747109qgd.1.2015.05.11.04.51.08; Mon, 11 May 2015 04:51:09 -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; Received: by lists.linaro.org (Postfix, from userid 109) id 70E1E61C7D; Mon, 11 May 2015 11:51:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id A0B8361B2D; Mon, 11 May 2015 11:51:05 +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 433B861C6D; Mon, 11 May 2015 11:51:00 +0000 (UTC) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0073.outbound.protection.outlook.com [157.56.111.73]) by lists.linaro.org (Postfix) with ESMTPS id 02E6A61C8E for ; Mon, 11 May 2015 11:48:47 +0000 (UTC) Received: from CH1PR03CA010.namprd03.prod.outlook.com (10.255.156.155) by BL2PR03MB275.namprd03.prod.outlook.com (10.255.231.22) with Microsoft SMTP Server (TLS) id 15.1.160.10; Mon, 11 May 2015 11:48:46 +0000 Received: from BL2FFO11FD033.protection.gbl (10.255.156.132) by CH1PR03CA010.outlook.office365.com (10.255.156.155) with Microsoft SMTP Server (TLS) id 15.1.154.19 via Frontend Transport; Mon, 11 May 2015 11:48:46 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning linaro.org discourages use of 192.88.158.2 as permitted sender) Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD033.mail.protection.outlook.com (10.173.161.129) with Microsoft SMTP Server (TLS) id 15.1.160.8 via Frontend Transport; Mon, 11 May 2015 11:48:45 +0000 Received: from fsr-fed1364-15.ea.freescale.net (fsr-fed1364-15.ea.freescale.net [10.171.81.144]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t4BBmhHL011645; Mon, 11 May 2015 04:48:44 -0700 From: To: Date: Mon, 11 May 2015 14:48:41 +0300 Message-ID: <1431344921-30393-1-git-send-email-alexandru.badicioiu@linaro.org> X-Mailer: git-send-email 1.7.3.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 130758185260651495; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(189002)(199003)(77156002)(33646002)(229853001)(104016003)(2351001)(46102003)(105596002)(189998001)(62966003)(50986999)(77096005)(575784001)(110136002)(19580405001)(5001960100002)(19580395003)(86152002)(36756003)(6806004)(50226001)(86362001)(92566002)(50466002)(5001920100001)(47776003)(87936001); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB275; H:az84smr01.freescale.net; FPR:; SPF:SoftFail; MLV:sfv; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB275; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BL2PR03MB275; BCL:0; PCL:0; RULEID:(400006); SRVR:BL2PR03MB275; X-Forefront-PRVS: 05739BA1B5 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2015 11:48:45.8467 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB275 X-Topics: patch Subject: [lng-odp] [PATCH 2/2] examples: ipsec: add run scripts for tunnel mode X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: alexandru.badicioiu@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Alexandru Badicioiu Signed-off-by: Alexandru Badicioiu --- 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 --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