Article View: linux.kernel.netdev
Article #24712[PATCH iproute2-next 2/2] configure: remove stale ipset compat shim and unused IP_CONFIG_SETNS
From: Stephen Hemminger
Date: Mon, 30 Nov 2026 17:23
Date: Mon, 30 Nov 2026 17:23
48 lines
12473 bytes
12473 bytes
Two unrelated leftovers in the generated config:
check_ipset() carried a fallback block guarded by #ifndef IP_SET_INVALID.
That macro has never existed in any released header; ip_set.h spells it
IPSET_INVALID_ID. So the guard always fired and the block always compiled,
defining IPSET_DIM_MAX as 3 where the real header says 6, and ip_set_id_t
as unsigned short where it is __u16. The test only kept working because
ip_set.h is included first and provides both itself. Drop the block and
rely on the header.
check_setns() wrote IP_CONFIG_SETNS to config.mk. No makefile has ever
read it; the -DHAVE_SETNS added on the next line is what actually gates
the fallback in include/namespace.h.
The protocol 6/7 test and the setns/name_to_handle_at probes stay. musl
and older glibc still make those worth checking.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
configure | 5 -----
1 file changed, 5 deletions(-)
diff --git a/configure b/configure
index d81a6a81..ef155ab3 100755
--- a/configure
+++ b/configure
@@ -84,7 +84,6 @@ int main(int argc, char **argv)
}
EOF
if $CC -I$INCLUDE -o $TMPDIR/setnstest $TMPDIR/setnstest.c >/dev/null 2>&1; then
- echo "IP_CONFIG_SETNS:=y" >>$CONFIG
echo "yes"
echo "CFLAGS += -DHAVE_SETNS" >>$CONFIG
else
@@ -121,10 +120,6 @@ check_ipset()
{
cat >$TMPDIR/ipsettest.c <<EOF
#include <linux/netfilter/ipset/ip_set.h>
-#ifndef IP_SET_INVALID
-#define IPSET_DIM_MAX 3
-typedef unsigned short ip_set_id_t;
-#endif
#include <linux/netfilter/xt_set.h>
struct xt_set_info info;
--
2.53.0
Technical Details
Message-ID:
<20261130172349.209692-2-stephen@networkplumber.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374343-linux-kernel-netdev=dewy.ruReferences:
<20261130172349.209692-1-stephen@networkplumber.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374343-linux-kernel-netdev=dewy.ru
From: stephen@networkplumber.org (Stephen Hemminger)
Newsgroups: linux.kernel.netdev
Subject: [PATCH iproute2-next 2/2] configure: remove stale ipset compat shim and unused IP_CONFIG_SETNS
Date: Mon, 30 Nov 2026 09:23:49 -0800
Organization: Usenet Network
Message-ID: <20261130172349.209692-2-stephen@networkplumber.org>
References: <20261130172349.209692-1-stephen@networkplumber.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="1483923"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Jk4QsY2O8bnyil/dy1XLox92LPg= sha256:sE+3VAMMclickkrYWFttMkUZjwXLxk+4JzUYGaEHL8w=
sha1:VMFUwDrZ0N1kPl1rhMQyTFzY84Q= sha256:Jclb8brrEyRZFgnKPP/gFQswAdUwNR5kdqBDUM6t3bE=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 20E94125FFA; Mon, 30 Nov 2026 20:24:16 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=networkplumber-org.20260707.gappssmtp.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id x6_aXMnbZXwM;
Mon, 30 Nov 2026 20:24:08 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-374343-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=quarantine dis=none) header.from=networkplumber.org
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
by mail.dewy.ru (Postfix) with ESMTPS id B48C0125FF9; Mon, 30 Nov 2026 20:23:57 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sto.lore.kernel.org (Postfix) with ESMTP id D9916600C2C; Mon, 30 Nov 2026 17:23:56 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1796059435;
b=r2zU7NJ96Aab83AlayDZTB6VdGnbXuTnE+4Nkv1StAjmTEIJD443LQtYpQKfpAtu7wt4
C0cNREWDdqLjw69xdDK7+3KFdsdHFNDX9xgANHnzXn4BTWT4QfmvM39LhaODQRSykD8Py
KGK56mJ+KYpycK1RVCSf962Q4oxEa5ulA3XSqkKplpuXrqpdd/7r/0gpAUwHIq//8aYDD
I1VAUxqtA014PoMTO6bIJNhi/I6ZbrraKVqTiXq5cJzJH3z2h6e4gr2XcLaod2NAsabNB
XKcmNNa8c8qIc/i49n3TU/Ma4B/UrLqVfAw/8VCsERal+fC2iKwE4C7AtaxSLUmTAlQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796059435;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:
References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:
Content-Transfer-Encoding;
bh=MKgMIHBqVtviNPLZ66DShYtZS0Cs3DRXryWb0rYyuXE=;
b=jmMkeFACCz96ysz00FH4WmLU9aRSUcqWY4hj8/5S51DaqKd8T01MXC7b7Y2PhYXssJTW
P0WYCafyWO25EWlIlsbD5tA3egmcB2KjFKWGUDrN+Fi8Oa4byoeWg3+scYrtRgvR2wXMV
60BDZ3lgqHeQ8X9T1Q9VVM9Yt6aFmfJinw29jfN+ETF+DbNzBbo/FduAJW+aFtxaanp86
eWF7PS9sMehDNhdOk0wOZtHonMfqAys7gPSBUaXPrCF7o53Dp75pXiPzcuevRJDJG6Cwt
uhqii8axMPelatIsoYGbq6PbEfjsewEIczUCJafAjm86zLFPkwltRLrjogheE35M/EQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=networkplumber-org.20260707.gappssmtp.com header.i=@networkplumber-org.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=P3B16ntv;
dmarc=pass header.from=networkplumber.org;
spf=pass smtp.mailfrom=networkplumber.org;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 116DD606A335;
Mon, 30 Nov 2026 17:23:55 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=networkplumber-org.20260707.gappssmtp.com header.i=@networkplumber-org.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=P3B16ntv
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.48
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1796059434;
b=QNCeOJAzcYQlkD/NqqzGRjF70ISfZXZSO80KodA1jmvJyZNNeFXLM5IGyKXgmV/mmWXx
L4zaUvYxA85jFD2clIXstPpoHFkjd4V5v6YTV7wKeE4ITWtX7IQeLmpbpV25JrlJIr5Ow
k7rm1n/6dvvUmoM1+Irxmodc0iSF9MOvtGjG0Huo8jfq5Mrk0purVO6Rzu4sPerc9KQJR
KObNXiRM0iXi8iJvZzp/70xac85Z/xxHFoF8hEEVvIMba/dn208nlPrlqYGHpIK77YdZR
8B/4Vc3Og+0Ve3NRQxFhizVkxATS6yKhI6IkbzToepyAzvWRmdSD9EAncCH5reTNs2w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796059434;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version:
Content-Transfer-Encoding;
bh=MKgMIHBqVtviNPLZ66DShYtZS0Cs3DRXryWb0rYyuXE=;
b=5Ncs4KGteJ2svNZgCJSWmZfQLG8kncRQZSZbYyq9KJExpGVDx0uVLMvvFCVTijxBB5cw
TBULtllXVuaKUjuhstOPtADQHQ9Jw6UkEZB1zi5n8o+gUhn2YmtV1cpYKiTTcg0nrC694
Hx7Eckthc6eR3Z9lM4nIOPedQ/LqZg6yKq3rSZDR9DVSaj8iihjFgIdHqOAu0vryxAJjP
yiOD7Bk26G9tIjLyvo1N0Lsww6dnjfV6Wm9UDHa7lejHvNtQ1y71Oy+HHOjv+5/kZClIx
hWjSvGBx/w9JA0tujcf8Elhe4inJxQ1fV0+YK9KN5y5CTk/P/DX5rumW2V1+X9ahwPg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=networkplumber.org;
spf=pass smtp.mailfrom=networkplumber.org;
dkim=pass header.d=networkplumber-org.20260707.gappssmtp.com header.i=@networkplumber-org.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=P3B16ntv;
arc=none smtp.remote-ip=209.85.216.48
X-Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3576F606A32F
for <netdev@vger.kernel.org>; Mon, 30 Nov 2026 17:23:52 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3576F606A32F
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=networkplumber.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=networkplumber.org
X-Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-3b51a9606e8so2870809a91.3
for <netdev@vger.kernel.org>; Mon, 30 Nov 2026 09:23:52 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=networkplumber-org.20260707.gappssmtp.com; s=20260707; t=1796059432; x=1796664232; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=MKgMIHBqVtviNPLZ66DShYtZS0Cs3DRXryWb0rYyuXE=;
b=P3B16ntv54TeXmn+ERwPB/t1hU5ijWTOfAacgyIbNECmEN3wH2vY+nvjs8T5cOEnJv
tAPREyt90RrB3ANL5tXp3IXaWRsL22C+3HzPIGTGFH6scAdj7cICQSNQ3zCM8vLrQTF2
aIUaMbQC26z0ipj2LAkQEWhZi9Z39WhQ6TW6HQ3pCC/8Avf54udZTbVtaQxJkGgYTZD+
PlmFZgLQ1taiKLtUE6IlMQ9uFhDPA49B6CasT3KfQrfhEjBmjWIL2GznV+R87mCuVr3I
IHphMWHN3RE8YSM18WV/JIwgjFworOLaDX3It16kLb+izv9CXgP5BbUh221XFO1S6HVW
5SOQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1796059432; x=1796664232;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=MKgMIHBqVtviNPLZ66DShYtZS0Cs3DRXryWb0rYyuXE=;
b=OMZ4s9yFCjmU+pfCi3Pe/A97S1PsCF+KzV2ynGuk9RFuuBPPQtmbsNboKG2QPaTliv
zTe3Od6csqME8Y/09C9+3/C7g9mVmdwRwQevUdvRjfgDkcAfZvhdH8AJuSXCms9T3oLs
sH+tBxWD2HICFlj/tqsaGLN7FPWBcdMxTD2l3zn6kG796HDL4D/VQOfXYZc12fernmgY
hsGRecIfIfT8izF1v6SZmw59i9kaLip5DniieAAvwXDRFbqVzLnKXu91TFDXGPnl+UJ/
w4vGvl8wW13aF+hlO2FI1jtk4t3U9my18vW0AK+rw/da31HrxraYFfWR4b/y9CxMUAFN
nvbQ==
X-Gm-Message-State: APuU4Z+JeOAUBK1J1FwqmvJ4fiARsv9nwu+vRQ9l+la3dt1GITCImBjE
MNyJp9YCkVJhPRmfAmpjYELRoK2HsWpC3FiQK/fVWxrVhZzlZVE3UWs+YNsP/B/uAjvAm4cK+YU
Ob44Yw7Q=
X-Gm-Gg: AZFdTZd4hYk/TKWxx4QdanqbzziEmTvHUSiDGGkax6D+zyxEo0nL1BoUI7S2oFkA++V
NLlJLTDQrok9eO8kFVhOldrPoXlYeVEqIMjPmufazftxj4MtJ3tNMOBb6JBQdo7tEc1tJqz9RNN
UrxxMbXifxsz2v4wvXBQV50Pm/zZ/TtuVz2+CioJfv3/3QtoB0ahJXtEMsNBehr3TRLwe6hWmHH
jDfqY4Gw6jdUfb08dvw8wgE6BCrIP7k70qoelJmz5JAp3sdT8DTm4Av0JUh96tmpvazDE4A2rGE
8bjiFr/EeYjmijuuTg4QnhNT8uGB2tu7P2XWKpMDrZltlVDVJEA1JDhpGyZbrS0aJvzo0sI4TKL
eU/VF6oKPqoAHGm7nJia/MO95Z+s/p5oCC5ax1hMdjx0DpyW97Nf6FNhlppzMArmlgXagPGIk8M
dUbSsjbAnsaAwUkXKWYN1dCW9CL9GO5+Z90qTSWRJu4xB8GoobiOtjD074P5ZeASpUIcgUBTCzp
08Nl6AvpAwIBcSrosGfX9OWOyYaDKsgzK/y7XRh3vOldxN9IMEwq1c96AXDkmlfbnRYs6sbOgIZ
wawt6RnWCrziJ63LOwbwrHQrOf9sQ+u8DT6O45fu6uHZYYyiin24nG31njRsz8HGhTbS
X-Received: by 2002:a17:90b:3f10:b0:3b3:b8f1:f152 with SMTP id 98e67ed59e1d1-3b41c7e1414mr32561885a91.2.1796059432424;
Mon, 30 Nov 2026 09:23:52 -0800 (PST)
X-Received: from phoenix.lan (204-195-112-43.wavecable.com. [204.195.112.43])
by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b41ad92c07sm54295494a91.13.2026.11.30.09.23.51
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Mon, 30 Nov 2026 09:23:52 -0800 (PST)
X-Cc: dsahern@kernel.org,
jhs@mojatatu.com,
Stephen Hemminger <stephen@networkplumber.org>
X-Mailer: git-send-email 2.53.0
X-In-Reply-To: <20261130172349.209692-1-stephen@networkplumber.org>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list