From b934ebcd368ebf4d2dd0bf4edabb083fdac82dad Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Mon, 22 Oct 2018 20:01:14 +0200 Subject: Prepare the ipset tool to handle multiple protocol versions From now on the "version" command asks the kernel protocol version too and reports if the userspace - kernel protocols do not match. --- include/libipset/linux_ip_set.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/libipset') diff --git a/include/libipset/linux_ip_set.h b/include/libipset/linux_ip_set.h index 883922d..2096611 100644 --- a/include/libipset/linux_ip_set.h +++ b/include/libipset/linux_ip_set.h @@ -12,8 +12,9 @@ #include -/* The protocol version */ -#define IPSET_PROTOCOL 6 +/* The supported protocol versions */ +#define IPSET_PROTOCOL_MIN 6 +#define IPSET_PROTOCOL 7 /* The max length of strings including NUL: set and type identifiers */ #define IPSET_MAXNAMELEN 32 -- cgit v1.2.3