diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2009-05-16 21:10:02 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2009-05-16 21:10:02 +0200 |
commit | 027dc5fb9021ce3f814a345b17c56d899733569a (patch) | |
tree | 0639dc5b91b3a98036ee7b8122fb508c78a92d7d /kernel/ip_set_iptree.c | |
parent | 40cb9382148104e0f68891b5cb3e5dc1a04250fa (diff) |
ipset 3.0 releasev3.0
The main change is full bigendian and 64/32bit enviroment support - in
consequence the kernel-userspace protocol version was bumped.
Diffstat (limited to 'kernel/ip_set_iptree.c')
-rw-r--r-- | kernel/ip_set_iptree.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/ip_set_iptree.c b/kernel/ip_set_iptree.c index f51dea1..08b9118 100644 --- a/kernel/ip_set_iptree.c +++ b/kernel/ip_set_iptree.c @@ -276,21 +276,21 @@ init_gc_timer(struct ip_set *set) } static int -iptree_create(struct ip_set *set, const void *data, size_t size) +iptree_create(struct ip_set *set, const void *data, u_int32_t size) { const struct ip_set_req_iptree_create *req = data; struct ip_set_iptree *map; if (size != sizeof(struct ip_set_req_iptree_create)) { - ip_set_printk("data length wrong (want %zu, have %zu)", + ip_set_printk("data length wrong (want %lu, have %lu)", sizeof(struct ip_set_req_iptree_create), - size); + (unsigned long)size); return -EINVAL; } map = kmalloc(sizeof(struct ip_set_iptree), GFP_KERNEL); if (!map) { - DP("out of memory for %d bytes", + DP("out of memory for %lu bytes", sizeof(struct ip_set_iptree)); return -ENOMEM; } |