From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergio Gonzalez Monroy Subject: Re: [PATCH v8 1/2] examples/ipsec-secgw: add configuration file support Date: Fri, 23 Sep 2016 08:52:35 +0100 Message-ID: <76d51670-36b0-ebe1-aefa-7d831a903bf3@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> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit To: Fan Zhang , dev@dpdk.org Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id CC4291F5 for ; Fri, 23 Sep 2016 09:52:37 +0200 (CEST) In-Reply-To: <1474459519-134894-2-git-send-email-roy.fan.zhang@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 21/09/2016 13:05, Fan Zhang wrote: > 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. > > Configuration item formats: > > SP rule format: > sp esp \ > > > SA rule format: > sa \ > > > Routing rule format: > rt > > 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 Acked-by: Sergio Gonzalez Monroy