From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id AAA4B2BBD for ; Wed, 21 Sep 2016 14:05:22 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP; 21 Sep 2016 05:05:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,373,1470726000"; d="scan'208";a="12110677" Received: from sie-lab-212-071.ir.intel.com (HELO silvfanzhan2.ir.intel.com) ([10.237.212.71]) by orsmga004.jf.intel.com with ESMTP; 21 Sep 2016 05:05:20 -0700 From: Fan Zhang To: dev@dpdk.org Cc: sergio.gonzalez.monroy@intel.com Date: Wed, 21 Sep 2016 13:05:17 +0100 Message-Id: <1474459519-134894-1-git-send-email-roy.fan.zhang@intel.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1471862953-8951-1-git-send-email-roy.fan.zhang@intel.com> References: <1471862953-8951-1-git-send-email-roy.fan.zhang@intel.com> Subject: [dpdk-dev] [PATCH v8 0/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: Wed, 21 Sep 2016 12:05:23 -0000 This patchset adds the configuration file supported to ipsec_secgw sample application. Two sample configuration files, ep0.cfg and ep1.cfg are also added to show how to configure two systems back-to-back that would forward traffic through an IPsec tunnel v8 change: - fix wrong inbound SA rule parsing v7 change: - updated release note v6 change: - fix SA digest length always 0 error v5 change: - fix missed SA key length checking parsing error - fix SA ip address printing v4 change: - rebase the patchset on top of "examples/ipsec-secgw: fix GCC 4.5.x build error" (http://dpdk.org/dev/patchwork/patch/14895/) - add cipher_key and auth_key configuration options to SA rules - updated documentation for the new options v3 change: - fix 32-bit compilation error v2 changes: - fix configuration file parsing error. - update doc to remove whitespace tailing errors. Fan Zhang (2): examples/ipsec-secgw: add configuration file support examples/ipsec-secgw: add sample configuration files 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/ep0.cfg | 160 ++++++ examples/ipsec-secgw/ep1.cfg | 160 ++++++ 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 +++++++++++++------- 13 files changed, 2717 insertions(+), 1319 deletions(-) create mode 100644 examples/ipsec-secgw/ep0.cfg create mode 100644 examples/ipsec-secgw/ep1.cfg create mode 100644 examples/ipsec-secgw/parser.c create mode 100644 examples/ipsec-secgw/parser.h -- 2.5.5