From: Stephen Hemminger <stephen@networkplumber.org>
To: netdev@vger.kernel.org
Cc: dsahern@kernel.org, jhs@mojatatu.com,
Stephen Hemminger <stephen@networkplumber.org>
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 [thread overview]
Message-ID: <20261130172349.209692-2-stephen@networkplumber.org> (raw)
In-Reply-To: <20261130172349.209692-1-stephen@networkplumber.org>
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
prev parent reply other threads:[~2026-11-30 17:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 17:23 [PATCH iproute2-next 1/2] configure: drop leftovers from removed iptables/xtables support Stephen Hemminger
2026-11-30 17:23 ` Stephen Hemminger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261130172349.209692-2-stephen@networkplumber.org \
--to=stephen@networkplumber.org \
--cc=dsahern@kernel.org \
--cc=jhs@mojatatu.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox