V=0
endif
-IPSET_VERSION:=3.1
+IPSET_VERSION:=3.2
PREFIX:=/usr/local
LIBDIR:=$(PREFIX)/lib
+3.2
+ - Mixed up formats in ip_set_iptree.c (Rob Sterenborg)
+ - Don't use 'bool' for backward compatibility reasons (Rob Sterenborg)
+
3.1
- Nonexistent sets were reported as existing sets when testing
from userspace in setlist type of sets (bug reported by Victor A.
struct ip_set_iptree *map;
if (size != sizeof(struct ip_set_req_iptree_create)) {
- ip_set_printk("data length wrong (want %lu, have %zu)",
+ ip_set_printk("data length wrong (want %zu, have %lu)",
sizeof(struct ip_set_req_iptree_create),
(unsigned long)size);
return -EINVAL;
#include <linux/netfilter_ipv4/ip_set_bitmaps.h>
#include <linux/netfilter_ipv4/ip_set_setlist.h>
-#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 18)
-typedef _Bool bool;
-enum { false = 0, true = 1, };
-#endif
-
/*
* before ==> index, ref
* after ==> ref, index
*/
-static inline bool
+static inline int
next_index_eq(const struct ip_set_setlist *map, int i, ip_set_id_t index)
{
return i < map->size && map->index[i] == index;
return res;
}
-static inline bool
+static inline int
unshift_setlist(struct ip_set_setlist *map, int i)
{
int j;