From patchwork Thu Dec 18 23:01:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 42474 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 776AB26C8B for ; Thu, 18 Dec 2014 23:02:15 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id b13sf1449159wgh.9 for ; Thu, 18 Dec 2014 15:02:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=SGCKR5znYeUpIwASNSU5+hsmzDHu5neOOpUcm+gwTrc=; b=cBpkyxHC5stt2BsrD/6Z71YBcOcTLtZwVxdHinhN3enGYMtXn30nFL0jX0dTbAfLkJ YMfxlYEr8LHIouqOzWnsfqYPR4eLZ3U3cjyRKo0SaNn0o8zvtaUkzD9yLKkDXMvoLBVI YI3xKeZNYxC40dpr1l+CjhPWlbigX+Wzc4cDtlx0GPHrWBcu4lwj0T+fmuQ/+laZoCpQ sIwFh7xNmvRRJeWFbeeM09iGVIARPy7qfwJR2ZfN2+P4xQx7XmNYj7+iVEABMNRSBXgG 3Gd0OsgZxfKgM7e7ReeftGNovdX6Y7pEa8GIihdwvK7CjqPYlIZrhHmn46f/kROUmn92 r29g== X-Gm-Message-State: ALoCoQlg+2rWSWId/XHwasyMCNHuD7pHoLHhsOvT9tnhxejGSbBnAn0CGWeqRJqk4yTzGv/c0WG6 X-Received: by 10.152.170.201 with SMTP id ao9mr666066lac.5.1418943734753; Thu, 18 Dec 2014 15:02:14 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.6.5 with SMTP id cq5ls1243920lad.93.gmail; Thu, 18 Dec 2014 15:02:14 -0800 (PST) X-Received: by 10.112.205.65 with SMTP id le1mr4729334lbc.54.1418943734498; Thu, 18 Dec 2014 15:02:14 -0800 (PST) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id h5si45094lbj.79.2014.12.18.15.02.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Dec 2014 15:02:14 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by mail-la0-f50.google.com with SMTP id pn19so1859887lab.37 for ; Thu, 18 Dec 2014 15:02:14 -0800 (PST) X-Received: by 10.112.135.197 with SMTP id pu5mr4738573lbb.22.1418943734391; Thu, 18 Dec 2014 15:02:14 -0800 (PST) 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.142.69 with SMTP id ru5csp92886lbb; Thu, 18 Dec 2014 15:02:13 -0800 (PST) X-Received: by 10.140.32.166 with SMTP id h35mr8049411qgh.22.1418943732584; Thu, 18 Dec 2014 15:02:12 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id h45si10051640qgd.59.2014.12.18.15.02.11 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 18 Dec 2014 15:02:12 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y1k5B-000173-P7; Thu, 18 Dec 2014 23:02:09 +0000 Received: from mail-la0-f65.google.com ([209.85.215.65]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y1k52-00014j-R5 for lng-odp@lists.linaro.org; Thu, 18 Dec 2014 23:02:00 +0000 Received: by mail-la0-f65.google.com with SMTP id hs14so451166lab.4 for ; Thu, 18 Dec 2014 15:01:54 -0800 (PST) X-Received: by 10.152.7.180 with SMTP id k20mr4886195laa.4.1418943714871; Thu, 18 Dec 2014 15:01:54 -0800 (PST) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id s16sm2157521lal.5.2014.12.18.15.01.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Dec 2014 15:01:54 -0800 (PST) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Fri, 19 Dec 2014 00:01:44 +0100 Message-Id: <1418943710-17817-2-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1418943710-17817-1-git-send-email-anders.roxell@linaro.org> References: <1418943710-17817-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 1/7] example: ipsec: Allow scripts to run odp_ipsec from PATH X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: anders.roxell@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.215.50 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 Signed-off-by: Anders Roxell --- example/ipsec/README | 2 ++ example/ipsec/run_ah_in.sh | 2 +- example/ipsec/run_ah_out.sh | 2 +- example/ipsec/run_both_in.sh | 2 +- example/ipsec/run_both_out.sh | 2 +- example/ipsec/run_esp_in.sh | 2 +- example/ipsec/run_esp_out.sh | 2 +- example/ipsec/run_live.sh | 2 +- example/ipsec/run_router.sh | 2 +- example/ipsec/run_simple.sh | 2 +- 10 files changed, 11 insertions(+), 9 deletions(-) diff --git a/example/ipsec/README b/example/ipsec/README index 73c8437..319bfc2 100644 --- a/example/ipsec/README +++ b/example/ipsec/README @@ -167,3 +167,5 @@ BASH batch files are now included to run several simple loopback tests that do not require any packet IO. The scripts create internal "loopback" (not real Linux loopback interfaces but simply ODP queues) as opposed to packet interfaces. +Before running the example bash scripts add odp_ipsec to your PATH +export PATH=":$PATH" diff --git a/example/ipsec/run_ah_in.sh b/example/ipsec/run_ah_in.sh index 5ff1687..252f44b 100755 --- a/example/ipsec/run_ah_in.sh +++ b/example/ipsec/run_ah_in.sh @@ -4,7 +4,7 @@ # - 2 loop interfaces # - 10 packets # - Specify API mode on command line -./odp_ipsec -i loop1,loop2 \ +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 \ diff --git a/example/ipsec/run_ah_out.sh b/example/ipsec/run_ah_out.sh index b78193e..9256c07 100755 --- a/example/ipsec/run_ah_out.sh +++ b/example/ipsec/run_ah_out.sh @@ -4,7 +4,7 @@ # - 2 loop interfaces # - 10 packets # - Specify API mode on command line - ./odp_ipsec -i loop1,loop2 \ +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 \ diff --git a/example/ipsec/run_both_in.sh b/example/ipsec/run_both_in.sh index 502f14a..c3f169c 100755 --- a/example/ipsec/run_both_in.sh +++ b/example/ipsec/run_both_in.sh @@ -4,7 +4,7 @@ # - 2 loop interfaces # - 10 packets # - Specify API mode on command line -./odp_ipsec -i loop1,loop2 \ +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 \ diff --git a/example/ipsec/run_both_out.sh b/example/ipsec/run_both_out.sh index 3086e6f..8ba0672 100755 --- a/example/ipsec/run_both_out.sh +++ b/example/ipsec/run_both_out.sh @@ -4,7 +4,7 @@ # - 2 loop interfaces # - 10 packets # - Specify API mode on command line -./odp_ipsec -i loop1,loop2 \ +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:\ diff --git a/example/ipsec/run_esp_in.sh b/example/ipsec/run_esp_in.sh index a206cc4..12fdae6 100755 --- a/example/ipsec/run_esp_in.sh +++ b/example/ipsec/run_esp_in.sh @@ -4,7 +4,7 @@ # - 2 loop interfaces # - 10 packets # - Specify API mode on command line -./odp_ipsec -i loop1,loop2 \ +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:\ diff --git a/example/ipsec/run_esp_out.sh b/example/ipsec/run_esp_out.sh index b5a541e..73c4ff0 100755 --- a/example/ipsec/run_esp_out.sh +++ b/example/ipsec/run_esp_out.sh @@ -4,7 +4,7 @@ # - 2 loop interfaces # - 10 packets # - Specify API mode on command line -./odp_ipsec -i loop1,loop2 \ +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:\ diff --git a/example/ipsec/run_live.sh b/example/ipsec/run_live.sh index f61d4e3..90947ad 100755 --- a/example/ipsec/run_live.sh +++ b/example/ipsec/run_live.sh @@ -3,7 +3,7 @@ # Live router test # - 2 interfaces interfaces # - Specify API mode on command line -sudo ./odp_ipsec -i p7p1,p8p1 \ +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 \ diff --git a/example/ipsec/run_router.sh b/example/ipsec/run_router.sh index 55ad766..3630297 100755 --- a/example/ipsec/run_router.sh +++ b/example/ipsec/run_router.sh @@ -3,7 +3,7 @@ # Live router test # - 2 interfaces interfaces # - Specify API mode on command line -sudo ./odp_ipsec -i p7p1,p8p1 \ +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.sh b/example/ipsec/run_simple.sh index 4622791..1211583 100755 --- a/example/ipsec/run_simple.sh +++ b/example/ipsec/run_simple.sh @@ -4,7 +4,7 @@ # - 2 loop interfaces # - 10 packets # - Specify API mode on command line -./odp_ipsec -i loop1,loop2 \ +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