summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/ipset/Makefile6
-rw-r--r--package/ipset/patches/patch-Makefile11
-rw-r--r--package/ipset/patches/patch-kernel_ipt_SET_c30
-rw-r--r--package/ipset/patches/patch-kernel_ipt_set_c32
4 files changed, 65 insertions, 14 deletions
diff --git a/package/ipset/Makefile b/package/ipset/Makefile
index ddb4e293b..a5b9c00c0 100644
--- a/package/ipset/Makefile
+++ b/package/ipset/Makefile
@@ -4,9 +4,9 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= ipset
-PKG_VERSION:= 3.0
-PKG_RELEASE:= 2
-PKG_MD5SUM:= 92bb09883dd8a77ec5cfbff1c8932b15
+PKG_VERSION:= 4.1
+PKG_RELEASE:= 1
+PKG_MD5SUM:= d104007fdf5ea64fef774c22b1c0a97b
PKG_DESCR:= ip sets administration utility
PKG_SECTION:= firewall
PKG_URL:= http://ipset.netfilter.org
diff --git a/package/ipset/patches/patch-Makefile b/package/ipset/patches/patch-Makefile
deleted file mode 100644
index 9eaf33095..000000000
--- a/package/ipset/patches/patch-Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
---- ipset-3.0.orig/Makefile 2009-05-16 21:09:38.000000000 +0200
-+++ ipset-3.0/Makefile 2009-11-19 23:32:37.000000000 +0100
-@@ -5,7 +5,7 @@
- ######################################################################
-
- ifndef KERNEL_DIR
--KERNEL_DIR=/usr/src/linux
-+KERNEL_DIR?=/usr/src/linux
- endif
- ifndef KBUILD_OUTPUT
- KBUILD_OUTPUT=$(KERNEL_DIR)
diff --git a/package/ipset/patches/patch-kernel_ipt_SET_c b/package/ipset/patches/patch-kernel_ipt_SET_c
new file mode 100644
index 000000000..22c1aff14
--- /dev/null
+++ b/package/ipset/patches/patch-kernel_ipt_SET_c
@@ -0,0 +1,30 @@
+--- ipset-4.1.orig/kernel/ipt_SET.c 2009-11-10 21:45:41.000000000 +0100
++++ ipset-4.1/kernel/ipt_SET.c 2010-08-29 14:45:51.863658421 +0200
+@@ -64,9 +64,12 @@ target(struct sk_buff *skb,
+ unsigned int hooknum,
+ const struct xt_target *target,
+ const void *targinfo)
+-#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28) */
++#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)
+ target(struct sk_buff *skb,
+ const struct xt_target_param *par)
++#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35) */
++target(struct sk_buff *skb,
++ const struct xt_action_param *par)
+ #endif
+ {
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
+@@ -127,9 +130,12 @@ checkentry(const char *tablename,
+ const struct xt_target *target,
+ void *targinfo,
+ unsigned int hook_mask)
+-#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28) */
++#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)
+ static bool
+ checkentry(const struct xt_tgchk_param *par)
++#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35) */
++static int
++checkentry(const struct xt_tgchk_param *par)
+ #endif
+ {
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
diff --git a/package/ipset/patches/patch-kernel_ipt_set_c b/package/ipset/patches/patch-kernel_ipt_set_c
new file mode 100644
index 000000000..50f81919a
--- /dev/null
+++ b/package/ipset/patches/patch-kernel_ipt_set_c
@@ -0,0 +1,32 @@
+--- ipset-4.1.orig/kernel/ipt_set.c 2009-11-10 21:45:41.000000000 +0100
++++ ipset-4.1/kernel/ipt_set.c 2010-08-29 14:45:51.832408251 +0200
+@@ -83,10 +83,14 @@ match(const struct sk_buff *skb,
+ int offset,
+ unsigned int protoff,
+ bool *hotdrop)
+-#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28) */
++#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)
+ static bool
+ match(const struct sk_buff *skb,
+ const struct xt_match_param *par)
++#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35) */
++static bool
++match(const struct sk_buff *skb,
++ struct xt_action_param *par)
+ #endif
+ {
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
+@@ -136,9 +140,12 @@ checkentry(const char *tablename,
+ const struct xt_match *match,
+ void *matchinfo,
+ unsigned int hook_mask)
+-#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28) */
++#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)
+ static bool
+ checkentry(const struct xt_mtchk_param *par)
++#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35) */
++static int
++checkentry(const struct xt_mtchk_param *par)
+ #endif
+ {
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)