summaryrefslogtreecommitdiffstats
path: root/include/libipset
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2018-10-22 20:01:14 +0200
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2018-10-22 20:01:14 +0200
commitb934ebcd368ebf4d2dd0bf4edabb083fdac82dad (patch)
treeba48c183fe9d244ebf13a418e3e8a22a1ee8c5fc /include/libipset
parentc387170f903a976922de970042f8fdb6ec93a0f8 (diff)
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.
Diffstat (limited to 'include/libipset')
-rw-r--r--include/libipset/linux_ip_set.h5
1 files changed, 3 insertions, 2 deletions
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 <linux/types.h>
-/* 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