netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2] configure: support ipset version 7 with kernel version 5
@ 2020-07-07  7:58 Tony Ambardar
  2020-07-08 15:49 ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: Tony Ambardar @ 2020-07-07  7:58 UTC (permalink / raw)
  To: netdev; +Cc: Stephen Hemminger, Tony Ambardar

The configure script checks for ipset v6 availability but doesn't test
for v7, which is backward compatible and used on kernel v5.x systems.
Update the script to test for both ipset versions. Without this change,
the tc ematch function em_ipset will be disabled.

Signed-off-by: Tony Ambardar <Tony.Ambardar@gmail.com>
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index f415bf49..307912aa 100755
--- a/configure
+++ b/configure
@@ -208,7 +208,7 @@ typedef unsigned short ip_set_id_t;
 #include <linux/netfilter/xt_set.h>
 
 struct xt_set_info info;
-#if IPSET_PROTOCOL == 6
+#if IPSET_PROTOCOL == 6 || IPSET_PROTOCOL == 7
 int main(void)
 {
 	return IPSET_MAXNAMELEN;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH iproute2] configure: support ipset version 7 with kernel version 5
  2020-07-07  7:58 [PATCH iproute2] configure: support ipset version 7 with kernel version 5 Tony Ambardar
@ 2020-07-08 15:49 ` Stephen Hemminger
  2020-07-09  2:56   ` Tony Ambardar
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2020-07-08 15:49 UTC (permalink / raw)
  To: Tony Ambardar; +Cc: netdev

On Tue,  7 Jul 2020 00:58:33 -0700
Tony Ambardar <tony.ambardar@gmail.com> wrote:

> The configure script checks for ipset v6 availability but doesn't test
> for v7, which is backward compatible and used on kernel v5.x systems.
> Update the script to test for both ipset versions. Without this change,
> the tc ematch function em_ipset will be disabled.
> 
> Signed-off-by: Tony Ambardar <Tony.Ambardar@gmail.com>

Sure applied. Maybe it should just check for > 6 to be future proof.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH iproute2] configure: support ipset version 7 with kernel version 5
  2020-07-08 15:49 ` Stephen Hemminger
@ 2020-07-09  2:56   ` Tony Ambardar
  0 siblings, 0 replies; 3+ messages in thread
From: Tony Ambardar @ 2020-07-09  2:56 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

On Wed, 8 Jul 2020 at 08:49, Stephen Hemminger
<stephen@networkplumber.org> wrote:
>
> On Tue,  7 Jul 2020 00:58:33 -0700
> Tony Ambardar <tony.ambardar@gmail.com> wrote:
>
> > The configure script checks for ipset v6 availability but doesn't test
> > for v7, which is backward compatible and used on kernel v5.x systems.
> > Update the script to test for both ipset versions. Without this change,
> > the tc ematch function em_ipset will be disabled.
> >
> > Signed-off-by: Tony Ambardar <Tony.Ambardar@gmail.com>
>
> Sure applied. Maybe it should just check for > 6 to be future proof.

Thank you. I kept the test as is since I couldn't confirm ipset
backward compatibility in
the future. If you have more insight, please let me know and I'll update it.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-09  2:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-07  7:58 [PATCH iproute2] configure: support ipset version 7 with kernel version 5 Tony Ambardar
2020-07-08 15:49 ` Stephen Hemminger
2020-07-09  2:56   ` Tony Ambardar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).