Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2473948imm; Thu, 2 Aug 2018 12:11:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcireSiE8KoTDik5UJUeCG695a2Cg3FOx+vv8vwhXD3QFUDyi4wZaSRA56yQ6veJGTVSbVJ X-Received: by 2002:a65:665a:: with SMTP id z26-v6mr651318pgv.193.1533237112258; Thu, 02 Aug 2018 12:11:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533237112; cv=none; d=google.com; s=arc-20160816; b=p0lfmaJayy44oioBwAQE4slKiBDO413v7V7nkoS9CNqQ40ne/HLP4Lym9nkvz/6HUk 70eTgGI0Btc1EaG6zv4jOdMLuK6/7+xTCFa7BVQmDLwCvx/CStYF2NjiHCx6Zmgj6dfM kMwa65oqn8uxBfJWw5BTAx5tYA9F1zYuXbT996drM9uYm5bJYzzwFS16f8zseoU8+A3F ObomaE1u77gkdp3wQe/0oMrNXisQdwUwsI+HhOclXUk/YmRGIyDytE4tgWUYtCDFhAlZ kPADFGIxf35y0x+IX6WRmjOsYR6pppdW28PQe3YlejCLbARLNK1CF20myAtKiuFSwcIQ xWrw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=SuyYwC9IPgiVzQ47tNT1SCsTqUvtuEi/hehfIcxx0wU=; b=U9XlLagk2/AXJ4KGcluWs5dwuohebP5U6o0cEl0yWgNgp1ODpUC8s58WmsTuZBBPt+ bU/85lrX4W4CbStxnWstTIDL9ZdsTvzVfEpSaCzACMYYIvoKvm1qzwr5TBYtlQyIC7q3 oUr1KdOJmynW/j2g9nZmQXHDk/wY1GlQL+9b02geMHtijn2P4HEZ8FpsFdjT3dO8IPUI 2REEYbPeI0jkgLH2UH/GQDBF5n6xW1hPNETMTNKlp8PmB9G2UOfZSg/m3pEeDYaUnOrg sIii1Udl3pQpTds7X5abStAfQaKsZTiL7hAMwMe/9Q+t8H+x+9Enk1Ht7vtahc58mgyN ODrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L7GbROh8; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k3-v6si2022626pld.296.2018.08.02.12.11.37; Thu, 02 Aug 2018 12:11:52 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L7GbROh8; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731429AbeHBVCm (ORCPT + 99 others); Thu, 2 Aug 2018 17:02:42 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:50858 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726250AbeHBVCm (ORCPT ); Thu, 2 Aug 2018 17:02:42 -0400 Received: by mail-wm0-f68.google.com with SMTP id s12-v6so3726254wmc.0; Thu, 02 Aug 2018 12:10:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=SuyYwC9IPgiVzQ47tNT1SCsTqUvtuEi/hehfIcxx0wU=; b=L7GbROh841hTKQLd4Mi293VwmGvx8CobaCC0UAzTQPRqrwnk1Vpphh9DAuXeURMqw0 4BOdy/X6fed0esq3SWvx1NiT8rvZSAOsrY2KMq8h/u/RKNe+ycqVQG98wWSmzyLYMV1V E7vb3SoL11vsy3u4Z8tw432LXn+83beTA2F3IimjjV6Yo+DW1wgWKpis26EIJadNEzk0 l7SKkJlW4tQZkGUD+rLeBxHrpBeja2IVynS0jIKpd+JaoSL1E44yTpyuZEQUnHEn8I2F v6UePAt2kZM9wtUrIQdDYfD0bBYXyKx4u6VnO7Z0PZ+RkYVZekc/DerQ6BtPOtiIiM5q LBfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=SuyYwC9IPgiVzQ47tNT1SCsTqUvtuEi/hehfIcxx0wU=; b=iD2zo4UOsNqvxcdDZ4LBx/HbFa/9l2ckeDQYQfs7sSIJVoA3by+lvxgQ01lh/KhYlL frFcjmJT56Gs8725AqSGjCJeGX4+FjYkCBziLe44cfhE2jPj1oQSC1WbsbSyGNTdYoKs xGulNMa3DvqiIshhHvyeRQpDudOjqsc4PBefOcUXRaSNIWh7P9uXBDtvAmBeGyRJAQQd fAXQpkoBHPZ8npmoo5uus6aj93Oy5nGxckya+hJNfVAdxML9hS444vttGBZtWKi0CcDO u22FZ/gISDY/K8aYRlTa8y8xb+AWQC5/5SLOjzUrVBZFeaCyMvNt4mq/2eQLbJgPhm60 WJww== X-Gm-Message-State: AOUpUlFYxYQGXDuXlpfcsofmiyozI5xZo8LUMshhhGgBKa1rjoOlZf1f Dmix3eLL27eYAK6p84x3YEmjWtyclpE= X-Received: by 2002:a1c:ad4:: with SMTP id 203-v6mr2693493wmk.98.1533237013428; Thu, 02 Aug 2018 12:10:13 -0700 (PDT) Received: from sch.bme.hu (ecklm-pi.sch.bme.hu. [152.66.179.182]) by smtp.gmail.com with ESMTPSA id 200-v6sm276840wmv.6.2018.08.02.12.10.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Aug 2018 12:10:12 -0700 (PDT) Date: Thu, 2 Aug 2018 21:10:11 +0200 From: =?utf-8?B?TcOhdMOp?= Eckl To: Randy Dunlap Cc: Stephen Rothwell , Linux-Next Mailing List , Linux Kernel Mailing List , "netdev@vger.kernel.org" , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, pablo@netfilter.org Subject: Re: linux-next: Tree for Aug 2 (netfilter: tproxy) Message-ID: <20180802191011.ibm2lknbzwm7zjoc@sch.bme.hu> References: <20180802193111.346fdde9@canb.auug.org.au> <0185f82e-4bf5-6c6c-a131-ba2c0197c9a0@infradead.org> <20180802190557.sha6wer6gkdgrd6i@sch.bme.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180802190557.sha6wer6gkdgrd6i@sch.bme.hu> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 02, 2018 at 09:05:57PM +0200, M?t? Eckl wrote: > Hi Randy, > > Thanks for reporting! > > Please find the patch attached. Sorry I made an error in the commit message... See the fix below. > > Regards, > Mate > > On Thu, Aug 02, 2018 at 09:28:16AM -0700, Randy Dunlap wrote: > > On 08/02/2018 02:31 AM, Stephen Rothwell wrote: > > > Hi all, > > > > > > Changes since 20180801: > > > > > > > on i386: > > > > ../net/netfilter/nft_tproxy.c: In function 'nft_tproxy_init': > > ../net/netfilter/nft_tproxy.c:237:3: error: implicit declaration of function 'nf_defrag_ipv6_enable' [-Werror=implicit-function-declaration] > > err = nf_defrag_ipv6_enable(ctx->net); > > > > > > Full randconfig file is attached. > > > > Reported-by: Randy Dunlap > > > > -- > > ~Randy > From 2c3a7d3209ed5e539ecd69192fc0f4186fdc7d99 Mon Sep 17 00:00:00 2001 > From: =?UTF-8?q?M=C3=A1t=C3=A9=20Eckl?= > Date: Thu, 2 Aug 2018 20:46:13 +0200 > Subject: [PATCH] netfilter: nft_tproxy: Add missing config check > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > A config check was missing form the code when using > nf_defrag_ipv6_enable with NFT_TPROXY != n and NF_DEFRAG_IPV6 = n and > this caused the following error in case of : Please change the last line to: this caused the following error: > > ../net/netfilter/nft_tproxy.c: In function 'nft_tproxy_init': > ../net/netfilter/nft_tproxy.c:237:3: error: implicit declaration of function > +'nf_defrag_ipv6_enable' [-Werror=implicit-function-declaration] > err = nf_defrag_ipv6_enable(ctx->net); > > This patch adds a check for NF_TABLES_IPV6 when NF_DEFRAG_IPV6 is > selected by Kconfig. > > Reported-by: Randy Dunlap > Fixes: 4ed8eb6570a4 ("netfilter: nf_tables: Add native tproxy support") > Signed-off-by: M?t? Eckl > --- > net/netfilter/nft_tproxy.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/net/netfilter/nft_tproxy.c b/net/netfilter/nft_tproxy.c > index c6845f7baa08..eff99dffc842 100644 > --- a/net/netfilter/nft_tproxy.c > +++ b/net/netfilter/nft_tproxy.c > @@ -234,9 +234,11 @@ static int nft_tproxy_init(const struct nft_ctx *ctx, > err = nf_defrag_ipv4_enable(ctx->net); > if (err) > return err; > +#if IS_ENABLED(CONFIG_NF_TABLES_IPV6) > err = nf_defrag_ipv6_enable(ctx->net); > if (err) > return err; > +#endif > break; > default: > return -EOPNOTSUPP; > -- > ecklm >