From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id 9993C558C for ; Sat, 16 Jul 2016 00:12:17 +0200 (CEST) Received: by mail-wm0-f52.google.com with SMTP id f126so40891512wma.1 for ; Fri, 15 Jul 2016 15:12:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=a+PRbe1ksXhfIG5wpYLQ4EDCf2YhyTiznGnSOHZsBsQ=; b=p2kTU7iKz8rJGoNQy3F+cMHkY708sN0V6n0Lx7L+bLYZiFwxfAZdggimlXkJeB49Jt I5s62z5bSvyoybJwLqTi9WJcPceEyP/FIEjmavRMbPFWNFjqiwEuOaAyvrycke8xB/Tq BJL4OkDZDN5dNHy53zyK4H6m7Bz39rr/OXek5MSYDixQDStl7mNKIxvxUpwxK9skmLBK iIVtYKpHl+XiLilhiYRXXCEWZDUR4jJ5LmrLiH8ipFSO397b/qwALgdqaUox6djgrhVZ P6UJ1vziejqMAOYvYuRjiZmboUHvvsZAmytKK1eJGIUkTDAoaC/6yGm1VTx568iv7VNy +3Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=a+PRbe1ksXhfIG5wpYLQ4EDCf2YhyTiznGnSOHZsBsQ=; b=mHWJTbu6Ff7w3E9Rf88VNMUqhIfvBkB3shoBgPsikgG5uiSZJ8aB1WDTWckD5WQcwI wJFiRTVPh/Wam0jLNj/Dm+WBw8F+ZKSXpmeVt1iH+oiRCDeDWnOarrZNBGzQ/VOtrkjU X9cDNYwBwGnPb74Oav1/BM1yCK7Ab+02Aa2+IHPvXA+TZ8JW+ZK28tcEN1/dU/cMINI8 7PZ2OTsEAXCBz7WiJ9IcAwU6rSq9fC4LH6ECPylIwgOUJ3IUSLzbCjPYFgIbD9UNz8o0 JMDCYov0r0xLBENjZIrv4cjCkrzDO4e2RY2sU/cUNhD/3NwPaMsL0mykv/bB5KzWwlXL 3aaQ== X-Gm-Message-State: ALyK8tIaGqGBGV728XkC5pS8Mhybr7I/I2lMKshzVNFAzBJVPR/RZ3H6hF//a2nQnaPWhhQM X-Received: by 10.28.126.2 with SMTP id z2mr26056521wmc.73.1468620737450; Fri, 15 Jul 2016 15:12:17 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id t71sm127805wmt.24.2016.07.15.15.12.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Jul 2016 15:12:16 -0700 (PDT) From: Thomas Monjalon To: Sergio Gonzalez Monroy Cc: dev@dpdk.org Date: Sat, 16 Jul 2016 00:12:15 +0200 Message-ID: <1509639.KTBnxvxhJS@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1468327775-67706-1-git-send-email-sergio.gonzalez.monroy@intel.com> References: <1468327775-67706-1-git-send-email-sergio.gonzalez.monroy@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] examples/ipsec-secgw: fix inbound segfault 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: Fri, 15 Jul 2016 22:12:17 -0000 2016-07-12 13:49, Sergio Gonzalez Monroy: > When sending Inbound non IPSec traffic that matches an Inbound Security > Policy set to Protect, the code will check that the SPI of the packet > and the associated Security Association match. > > That check should only be done for IPSec packets and results in SEGFAULT > when done on non IPSec packets. > > Fixes: 906257e965b7 ("examples/ipsec-secgw: support IPv6") > > Signed-off-by: Sergio Gonzalez Monroy Applied, thanks