Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp366602rbb; Sat, 24 Feb 2024 04:13:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWkWVaDX9RkxFm+hEtinjXXONIA92kd864VjKYWW/zJ2lU+2DsMQutfNQQR9UByevxlncrg6pX2CPYhGI/sZGHh652uImwQgaylrz+dyQ== X-Google-Smtp-Source: AGHT+IH1YiruKMkQV4Nyf66wo7ThdGUxkib3e/RM22HhAfOue/6rtd35G1LgKyUZNzp1a7Pwm/Yj X-Received: by 2002:a17:906:807:b0:a41:309d:8a3b with SMTP id e7-20020a170906080700b00a41309d8a3bmr1392239ejd.41.1708776830376; Sat, 24 Feb 2024 04:13:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708776830; cv=pass; d=google.com; s=arc-20160816; b=U3uqR04fr3aLEFdakVRneuGruFpEDX9Fy5M45CLW5YQm6E72XraLhAlWh2IC3ZDfzW iyy2TiEXY45msgT+485CfmnD3QAMxhagMzOmwvk0yzyMrB5KTiGI6w+aE8+b/1HyxRF0 YZJuR0Goz5tB5wyCiB1iLrDtbbf4Fi6hGF76UkPUHUQBObH6SI6FejSvWJndBQFOthWJ 8nmMO0GSaZErlOYgKxu0FiW4++goqTU+Ua/E8vSRuSM1GlOap7BmMDGvXCaUQGTDogIr sT93yrsTF0NkQG0TLcAVFBxCN8CvmMMh0ClNYtN5+RZWQtZ8j6bduPOEUSx2ruJE5Jhn prOA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=w4/Y03V6mt1FJRtgODWgWlTp/yB2V5Gowvh5FFHmA+g=; fh=OWIRDvrHsFwrrvmSjSKpQQ4qAQ0mg4WWogikyQ5T1q0=; b=SMOD8OgLAhsMX8hcVTjYm5AydQ4/wezxxaZelatpsIzLhfiBNDeNbrPCZKsn+7Ftow E/A9CRIWWrQSqCT7CcFfJgXeDUWxPEt9cdfEDy2Q0DND57kgIkGbnr2TEvRro2v/d7wt aqVZqdTfWN8lDdNj6SiRuST2IXRo3jHV0Mf6hDd+ftN392aSM3tqBxeV8kYj4ULmUS2c 9zcfgm09gIpzhbqCnnHlXusLHt1SJx72fXh9Wa6eXg0bxMahigi6H9wRmxbvoh5UnYVH Pw+PgkIYCViDUNwBkoKvH2pZK0v4G4uQxwGrFM8hmlbkzyQqBQym20CsBtdUgabG2gkZ 9w7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JBBbX1x8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79632-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79632-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x15-20020a170906710f00b00a3e3fab918asi453945ejj.627.2024.02.24.04.13.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 04:13:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79632-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JBBbX1x8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79632-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79632-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1F2A01F20F67 for ; Sat, 24 Feb 2024 12:13:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F7343D55B; Sat, 24 Feb 2024 12:13:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JBBbX1x8" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90778250EA; Sat, 24 Feb 2024 12:13:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708776816; cv=none; b=k7n6qiomz8wdgmlm+L9ewMgVrY/fKB32XF4xE2nhx+xLXpgXVez7rQwnmk8+TCQpTbJJCUECFB1YLFohAQhVJ5u1j5RP+viMZuYbimjhQZ5kbSeNnEzMKC86FfO1EWKx8tyRZptx3JpXzM41h95h9G1AoTtJURsjQIHjtMZ4CY8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708776816; c=relaxed/simple; bh=XuZaYULxt+QGAQ9Uunj4VVZWgUNRWuw89lnYQs72UaE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=OocDjRbFzgmS/l11sIvoiXuEHShmIMQ8KHrfWgR7KhZZLOqUiS/wwcgVe1G6ie5YWzrzdy6Y3f5U+KQONPW+A+F+VcRImMV4OTTwsFh/zsSKmvvhCu4VVIct9Io/44/T1NQyuovRS6EPL6Em+eaP3KSqOMlfEZXRP4PUwmpxWRQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JBBbX1x8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F5F8C433C7; Sat, 24 Feb 2024 12:13:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708776816; bh=XuZaYULxt+QGAQ9Uunj4VVZWgUNRWuw89lnYQs72UaE=; h=From:To:Cc:Subject:Date:From; b=JBBbX1x8mXKUnleDNXQBhFhFYeFJbRFjBjjYJTrUf9jotWBHCZANs+6ulYxs5u60B FuvoWL758zNYDzP/rlga/Z3DlOqtANpMKFbBng9LwIBORz88DS3N5oLTT2DjdaNhHv YhMQLfTibP4NVtubCa2jCcfB5bu6Z1c5QyIl2nFd1/SH3UeDX/KJmxW/bIdLpf/gaE r84yG8YdODU8ZFreixoKcE6nuDE3tUyDUECbPgQZQa0sIkJXIyJ5yzLdU8cld3US9p RmKPse8uLoH6MsC9mKy6/3nmfGS/87zixtpIZYVlWxHHibsIvJtgTkM7pLyClkcyAl P/eBrfdD7z0yw== From: Arnd Bergmann To: Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal Cc: Arnd Bergmann , "David S. Miller" , David Ahern , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] netfilter: xtables: fix IP6_NF_IPTABLES_LEGACY typo Date: Sat, 24 Feb 2024 13:13:13 +0100 Message-Id: <20240224121330.1924338-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann CONFIG_IP_NF_NAT accidentally selects the wrong NF_IPTABLES_LEGACY symbol, which ends up causing a link failure in some configurations: WARNING: unmet direct dependencies detected for IP6_NF_IPTABLES_LEGACY Depends on [n]: NET [=y] && INET [=y] && IPV6 [=n] && NETFILTER [=y] Selected by [m]: Select IP_NF_IPTABLES_LEGACY instead of IP6_NF_IPTABLES_LEGACY. Fixes: a9525c7f6219 ("netfilter: xtables: allow xtables-nft only builds") Signed-off-by: Arnd Bergmann --- net/ipv4/netfilter/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/netfilter/Kconfig b/net/ipv4/netfilter/Kconfig index 87d890172809..8f6e950163a7 100644 --- a/net/ipv4/netfilter/Kconfig +++ b/net/ipv4/netfilter/Kconfig @@ -217,7 +217,7 @@ config IP_NF_NAT default m if NETFILTER_ADVANCED=n select NF_NAT select NETFILTER_XT_NAT - select IP6_NF_IPTABLES_LEGACY + select IP_NF_IPTABLES_LEGACY help This enables the `nat' table in iptables. This allows masquerading, port forwarding and other forms of full Network Address Port -- 2.39.2