From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2 1/2] examples/ipsec-secgw: add configuration file support Date: Mon, 11 Jul 2016 17:19:13 +0200 Message-ID: <86368365.uyKVKjXL1q@xps13> References: <1467891093-41205-1-git-send-email-roy.fan.zhang@intel.com> <1468248213-13100-1-git-send-email-roy.fan.zhang@intel.com> <1468248213-13100-2-git-send-email-roy.fan.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org, sergio.gonzalez.monroy@intel.com To: Fan Zhang Return-path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id E976A1C52 for ; Mon, 11 Jul 2016 17:19:17 +0200 (CEST) Received: by mail-wm0-f48.google.com with SMTP id f65so67611821wmi.0 for ; Mon, 11 Jul 2016 08:19:17 -0700 (PDT) In-Reply-To: <1468248213-13100-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" 2016-07-11 15:43, Fan Zhang: > 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. There is a 32-bit compilation error: examples/ipsec-secgw/parser.c:286:10: error: format =E2=80=98%lu=E2=80=99 expects argument of type =E2=80=98long uns= igned int=E2=80=99, but argument 2 has type =E2=80=98size_t {aka unsigned int}=E2=80=99 [-W= error=3Dformat=3D] printf("len error, has %lu, expect %i\n", strlen(ip_str),