From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 6D1A92A1A for ; Thu, 29 Sep 2016 03:19:47 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 28 Sep 2016 18:19:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,412,1470726000"; d="scan'208";a="767000258" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by FMSMGA003.fm.intel.com with ESMTP; 28 Sep 2016 18:19:47 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 28 Sep 2016 18:19:46 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 28 Sep 2016 18:19:45 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.15]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.101]) with mapi id 14.03.0248.002; Thu, 29 Sep 2016 09:19:43 +0800 From: "Chen, Zhaoyan" To: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v8 1/2] examples/ipsec-secgw: add configuration file support Thread-Index: AQHSFACYnzksWt/VEEGqlJNEvfYafqCPrwTg Date: Thu, 29 Sep 2016 01:19:43 +0000 Message-ID: <9DEEADBC57E43F4DA73B571777FECECA3A5A5951@shsmsx102.ccr.corp.intel.com> References: <1471862953-8951-1-git-send-email-roy.fan.zhang@intel.com> <1474459519-134894-1-git-send-email-roy.fan.zhang@intel.com> <1474459519-134894-2-git-send-email-roy.fan.zhang@intel.com> In-Reply-To: <1474459519-134894-2-git-send-email-roy.fan.zhang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYWRhYTRhZWQtOTkxYy00Y2NhLTg1YjYtYmNlYjE3YWUwYzU4IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IlZDR3k2YlEwNDF0UFRzV3BFdFZodzVHcUdiOHFsc3p6bGhzc3pxdStyODg9In0= x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v8 1/2] examples/ipsec-secgw: add configuration file support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2016 01:19:48 -0000 Tested-by: Zhaoyan Chen - Apply patch: Pass - Compile: Pass - OS: 3.17.4-301.fc21.x86_64 - GCC: 4.9.2 Test Case - Pass - Launch ipsec-gateway with "-f" parameter and ep0.cfg, check the default c= onfiguration file work. - Modified Algorithm in config file and launch ipsec-gateway and check the = new algorithm effected - Modified the key and check the key effected. - Modified the iv and check the iv effected - Modified the router rule and check the the rule effected But for negative test,=20 If input incorrect key and iv, the application will PANIC in parse_cfg_file= () For instance, change the line 70 in ep0.cfg, add 1 more at the end = of line, like "a0:a0:a0: \"=20 The application will Abort (core dump). Expected it should report error and= exit safe.=20 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Fan Zhang > Sent: Wednesday, September 21, 2016 8:05 PM > To: dev@dpdk.org > Cc: Gonzalez Monroy, Sergio > Subject: [dpdk-dev] [PATCH v8 1/2] examples/ipsec-secgw: add > configuration file support >=20 > This patch adds the configuration file support to ipsec_secgw > sample application. Instead of hard-coded rules, the users can > specify their own SP, SA, and routing rules in the configuration > file. An command line option "-f" is added to pass the > configuration file location to the application. >=20 > Configuration item formats: >=20 > SP rule format: > sp esp \ > >=20 > SA rule format: > sa \ > >=20 > Routing rule format: > rt >=20 > Signed-off-by: Fan Zhang > --- > doc/guides/rel_notes/release_16_11.rst | 4 + > doc/guides/sample_app_ug/ipsec_secgw.rst | 845 +++++++++++++---------- > -------- > examples/ipsec-secgw/Makefile | 1 + > examples/ipsec-secgw/ipsec-secgw.c | 58 ++- > examples/ipsec-secgw/ipsec.h | 14 +- > examples/ipsec-secgw/parser.c | 599 ++++++++++++++++++++++ > examples/ipsec-secgw/parser.h | 116 +++++ > examples/ipsec-secgw/rt.c | 255 ++++------ > examples/ipsec-secgw/sa.c | 747 +++++++++++++++++--------= -- > examples/ipsec-secgw/sp4.c | 538 ++++++++++++-------- > examples/ipsec-secgw/sp6.c | 539 +++++++++++++------- > 11 files changed, 2397 insertions(+), 1319 deletions(-) > create mode 100644 examples/ipsec-secgw/parser.c > create mode 100644 examples/ipsec-secgw/parser.h >=20 > diff --git a/doc/guides/rel_notes/release_16_11.rst > b/doc/guides/rel_notes/release_16_11.rst > index 451872e..da61798 100644 > --- a/doc/guides/rel_notes/release_16_11.rst > +++ b/doc/guides/rel_notes/release_16_11.rst > @@ -82,6 +82,10 @@ Libraries > Examples > ~~~~~~~~ >=20 > +* **ipsec-secgw: add configuration file support** > + > + ipsec-secgw sample application now supports configuration file to spec= ify > + SP, SA, and routing rules. >=20 > Other [...]=20 > -- > 2.5.5