Received: by 10.223.176.46 with SMTP id f43csp337707wra; Tue, 23 Jan 2018 22:12:44 -0800 (PST) X-Google-Smtp-Source: AH8x226Lwc/94wccsnuXs9zlsTuY1AgW92Ne3DPpsraiWLdRJzOW5gPW2bNvaRMBENnYS3Q0yeYu X-Received: by 10.99.164.25 with SMTP id c25mr10014987pgf.430.1516774364538; Tue, 23 Jan 2018 22:12:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516774364; cv=none; d=google.com; s=arc-20160816; b=0/jh9zvuSA5u8g5gXvGW4RPpHLMYQAix4rUs0LKeSJZAPygGXNIAoyhXq/UkNdJhS9 FISeyo1X19zjgn/CQLbyAk5lYjVW0E5p/EDF6IlIaVPMvvE+3pfFdMcfzFX7PMrPYoQN 8QtXSLYFq33uzvPxCCYf4SE7x9DSJxrzLsEOzMowiuUon4cXhrQYVz3D6zkg7E5516ol H46QJXpsmEU/bT3I/Fd2kCf/naY3iBmUnCKA4T9cVwLf+Erx6e5UEXXOrlCMEFUjveUA 4wAKNiziqY5geP9ZgLPcfWh3NbYpZ6SIu0y5d6IelSRQAvNJ4y9cIcd/b2+5M2J65Zh0 scMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=kXxGCD/JYjCtcJFrrD069h7y9kA+xLvbAa08xsUJhPI=; b=Vk0JxNb7C5tEngq92ovYBkAlxAWWsJiZw9ZZGH+xNrBZc5B6a1Bh5Torue0796Guza 5Koo3Fdxsy3yOjTHcCI+wpU3vLS3vsBJyimwQTK8TgNIlVlTkmw6HA16hBtgliz+830/ c0M2S/u0kbu4zdc9f+KWxXOWPKKCBJhoaKWn5n9KY4PGpYeHTvXIuhlUp4bScupq8MBD pHAU7tb/ATFpC17N2LnI2dRnbiwngPI3nI8OSl4IzNLgdQSHplx3P2udRGqoDcPyjZCq aghNYBCNhmaj8225TmpzJr66MUYSSHHqPNVfiW92fhkN3a2i3ER38JoaOtEHEMRykf4O FFPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si15410172pgn.504.2018.01.23.22.12.20; Tue, 23 Jan 2018 22:12:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752424AbeAXGLp (ORCPT + 99 others); Wed, 24 Jan 2018 01:11:45 -0500 Received: from a.mx.secunet.com ([62.96.220.36]:51852 "EHLO a.mx.secunet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751488AbeAXGLo (ORCPT ); Wed, 24 Jan 2018 01:11:44 -0500 Received: from localhost (localhost [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id 81F672018E; Wed, 24 Jan 2018 07:11:42 +0100 (CET) X-Virus-Scanned: by secunet Received: from a.mx.secunet.com ([127.0.0.1]) by localhost (a.mx.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2suudr1WO4Gi; Wed, 24 Jan 2018 07:11:41 +0100 (CET) Received: from mail-essen-01.secunet.de (mail-essen-01.secunet.de [10.53.40.204]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a.mx.secunet.com (Postfix) with ESMTPS id C17AB20184; Wed, 24 Jan 2018 07:11:41 +0100 (CET) Received: from gauss2.secunet.de (10.182.6.161) by mail-essen-01.secunet.de (10.53.40.204) with Microsoft SMTP Server id 14.3.361.1; Wed, 24 Jan 2018 07:10:42 +0100 Received: by gauss2.secunet.de (Postfix, from userid 1000) id 4918B31825B7; Wed, 24 Jan 2018 07:11:41 +0100 (CET) Date: Wed, 24 Jan 2018 07:11:41 +0100 From: Steffen Klassert To: CC: Herbert Xu , "David S. Miller" , Alexey Kuznetsov , "Hideaki YOSHIFUJI" , , Subject: Re: [PATCH net] xfrm: Fix eth_hdr(skb)->h_proto to reflect inner IP version Message-ID: <20180124061141.h2od4jyinwybygt4@gauss3.secunet.de> References: <1516659381-12971-1-git-send-email-yossiku@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1516659381-12971-1-git-send-email-yossiku@mellanox.com> User-Agent: NeoMutt/20170609 (1.8.3) X-G-Data-MailSecurity-for-Exchange-State: 0 X-G-Data-MailSecurity-for-Exchange-Error: 0 X-G-Data-MailSecurity-for-Exchange-Sender: 23 X-G-Data-MailSecurity-for-Exchange-Server: d65e63f7-5c15-413f-8f63-c0d707471c93 X-EXCLAIMER-MD-CONFIG: 2c86f778-e09b-4440-8b15-867914633a10 X-G-Data-MailSecurity-for-Exchange-Guid: FC2CB300-0F8F-4DA0-82D7-0BD28EAC3DB6 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 23, 2018 at 12:16:21AM +0200, yossiku@mellanox.com wrote: > From: Yossi Kuperman > > IPSec tunnel mode supports encapsulation of IPv4 over IPv6 and vice-versa. > > The outer IP header is stripped and the inner IP inherits the original > Ethernet header. Tcpdump fails to properly decode the inner packet in > case that h_proto is different than the inner IP version. > > Fix h_proto to reflect the inner IP version. > > Signed-off-by: Yossi Kuperman Applied, thanks Yossi!