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 v2 2/3] configure: remove dead ipset compat block and IP_CONFIG_SETNS
Date: Mon, 30 Nov 2026 09:57:04 -0800 [thread overview]
Message-ID: <20261130175706.336492-2-stephen@networkplumber.org> (raw)
In-Reply-To: <20261130175706.336492-1-stephen@networkplumber.org>
check_ipset() had a fallback guarded by #ifndef IP_SET_INVALID. No
released header has ever defined that macro; ip_set.h spells it
IPSET_INVALID_ID. The guard therefore always fired, defining
IPSET_DIM_MAX as 3 where the 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 defines both itself.
check_setns() also wrote IP_CONFIG_SETNS, which no makefile reads. The
-DHAVE_SETNS on the next line is what gates the fallback in
include/namespace.h.
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
next prev parent reply other threads:[~2026-11-30 17:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 17:57 [PATCH iproute2-next v2 1/3] configure: drop leftovers from removed iptables action Stephen Hemminger
2026-11-30 17:57 ` Stephen Hemminger [this message]
2026-11-30 17:57 ` [PATCH iproute2-next v2 3/3] configure: use pkg-config instead of hand-rolled probes Stephen Hemminger
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=20261130175706.336492-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