iproute2: tc: fix missing em_ipset module
[openwrt/staging/chunkeey.git] / package / network / utils / iproute2 / patches / 002-configure-support-ipset-v7.patch
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
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.
10
11 Signed-off-by: Tony Ambardar <Tony.Ambardar@gmail.com>
12 Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
13 ---
14 configure | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/configure b/configure
18 index f415bf49..307912aa 100755
19 --- a/configure
20 +++ b/configure
21 @@ -208,7 +208,7 @@ typedef unsigned short ip_set_id_t;
22 #include <linux/netfilter/xt_set.h>
23
24 struct xt_set_info info;
25 -#if IPSET_PROTOCOL == 6
26 +#if IPSET_PROTOCOL == 6 || IPSET_PROTOCOL == 7
27 int main(void)
28 {
29 return IPSET_MAXNAMELEN;
30 --
31 2.17.1
32