1 From 650591a7a70cd79d826fcdc579a20c168c987cf2 Mon Sep 17 00:00:00 2001
2 From: Tony Ambardar <tony.ambardar@gmail.com>
3 Date: Tue, 7 Jul 2020 00:58:33 -0700
4 Subject: [PATCH] configure: support ipset version 7 with kernel version 5
6 The configure script checks for ipset v6 availability but doesn't test
7 for v7, which is backward compatible and used on kernel v5.x systems.
8 Update the script to test for both ipset versions. Without this change,
9 the tc ematch function em_ipset will be disabled.
11 Signed-off-by: Tony Ambardar <Tony.Ambardar@gmail.com>
12 Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
15 1 file changed, 1 insertion(+), 1 deletion(-)
17 diff --git a/configure b/configure
18 index f415bf49..307912aa 100755
21 @@ -208,7 +208,7 @@ typedef unsigned short ip_set_id_t;
22 #include <linux/netfilter/xt_set.h>
24 struct xt_set_info info;
25 -#if IPSET_PROTOCOL == 6
26 +#if IPSET_PROTOCOL == 6 || IPSET_PROTOCOL == 7
29 return IPSET_MAXNAMELEN;