|
|
@@ -1,6 +1,6 @@
|
|
|
--- a/include/linux/netfilter_ipv4/Kbuild
|
|
|
+++ b/include/linux/netfilter_ipv4/Kbuild
|
|
|
-@@ -59,3 +59,14 @@
|
|
|
+@@ -59,3 +59,14 @@ unifdef-y += ip_nat.h
|
|
|
unifdef-y += ip_nat_rule.h
|
|
|
unifdef-y += ip_queue.h
|
|
|
unifdef-y += ip_tables.h
|
|
|
@@ -15,10 +15,8 @@
|
|
|
+header-y += ip_set_macipmap.h
|
|
|
+unifdef-y += ip_set_nethash.h
|
|
|
+header-y += ip_set_portmap.h
|
|
|
-Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set.h
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set.h
|
|
|
++++ b/include/linux/netfilter_ipv4/ip_set.h
|
|
|
@@ -0,0 +1,498 @@
|
|
|
+#ifndef _IP_SET_H
|
|
|
+#define _IP_SET_H
|
|
|
@@ -518,10 +516,8 @@ Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set.h
|
|
|
+#endif /* __KERNEL__ */
|
|
|
+
|
|
|
+#endif /*_IP_SET_H*/
|
|
|
-Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_iphash.h
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_iphash.h
|
|
|
++++ b/include/linux/netfilter_ipv4/ip_set_iphash.h
|
|
|
@@ -0,0 +1,30 @@
|
|
|
+#ifndef __IP_SET_IPHASH_H
|
|
|
+#define __IP_SET_IPHASH_H
|
|
|
@@ -553,10 +549,8 @@ Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_iphash.h
|
|
|
+};
|
|
|
+
|
|
|
+#endif /* __IP_SET_IPHASH_H */
|
|
|
-Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_ipmap.h
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_ipmap.h
|
|
|
++++ b/include/linux/netfilter_ipv4/ip_set_ipmap.h
|
|
|
@@ -0,0 +1,56 @@
|
|
|
+#ifndef __IP_SET_IPMAP_H
|
|
|
+#define __IP_SET_IPMAP_H
|
|
|
@@ -614,10 +608,8 @@ Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_ipmap.h
|
|
|
+}
|
|
|
+
|
|
|
+#endif /* __IP_SET_IPMAP_H */
|
|
|
-Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_ipporthash.h
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_ipporthash.h
|
|
|
++++ b/include/linux/netfilter_ipv4/ip_set_ipporthash.h
|
|
|
@@ -0,0 +1,34 @@
|
|
|
+#ifndef __IP_SET_IPPORTHASH_H
|
|
|
+#define __IP_SET_IPPORTHASH_H
|
|
|
@@ -653,10 +645,8 @@ Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_ipporthash.h
|
|
|
+};
|
|
|
+
|
|
|
+#endif /* __IP_SET_IPPORTHASH_H */
|
|
|
-Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_iptree.h
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_iptree.h
|
|
|
++++ b/include/linux/netfilter_ipv4/ip_set_iptree.h
|
|
|
@@ -0,0 +1,40 @@
|
|
|
+#ifndef __IP_SET_IPTREE_H
|
|
|
+#define __IP_SET_IPTREE_H
|
|
|
@@ -698,10 +688,8 @@ Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_iptree.h
|
|
|
+};
|
|
|
+
|
|
|
+#endif /* __IP_SET_IPTREE_H */
|
|
|
-Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_iptreemap.h
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_iptreemap.h
|
|
|
++++ b/include/linux/netfilter_ipv4/ip_set_iptreemap.h
|
|
|
@@ -0,0 +1,40 @@
|
|
|
+#ifndef __IP_SET_IPTREEMAP_H
|
|
|
+#define __IP_SET_IPTREEMAP_H
|
|
|
@@ -743,10 +731,8 @@ Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_iptreemap.h
|
|
|
+};
|
|
|
+
|
|
|
+#endif /* __IP_SET_IPTREEMAP_H */
|
|
|
-Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_jhash.h
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_jhash.h
|
|
|
++++ b/include/linux/netfilter_ipv4/ip_set_jhash.h
|
|
|
@@ -0,0 +1,148 @@
|
|
|
+#ifndef _LINUX_IPSET_JHASH_H
|
|
|
+#define _LINUX_IPSET_JHASH_H
|
|
|
@@ -896,10 +882,8 @@ Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_jhash.h
|
|
|
+}
|
|
|
+
|
|
|
+#endif /* _LINUX_IPSET_JHASH_H */
|
|
|
-Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_macipmap.h
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_macipmap.h
|
|
|
++++ b/include/linux/netfilter_ipv4/ip_set_macipmap.h
|
|
|
@@ -0,0 +1,38 @@
|
|
|
+#ifndef __IP_SET_MACIPMAP_H
|
|
|
+#define __IP_SET_MACIPMAP_H
|
|
|
@@ -939,10 +923,8 @@ Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_macipmap.h
|
|
|
+};
|
|
|
+
|
|
|
+#endif /* __IP_SET_MACIPMAP_H */
|
|
|
-Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_malloc.h
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_malloc.h
|
|
|
++++ b/include/linux/netfilter_ipv4/ip_set_malloc.h
|
|
|
@@ -0,0 +1,116 @@
|
|
|
+#ifndef _IP_SET_MALLOC_H
|
|
|
+#define _IP_SET_MALLOC_H
|
|
|
@@ -1060,10 +1042,8 @@ Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_malloc.h
|
|
|
+#endif /* __KERNEL__ */
|
|
|
+
|
|
|
+#endif /*_IP_SET_MALLOC_H*/
|
|
|
-Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_nethash.h
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_nethash.h
|
|
|
++++ b/include/linux/netfilter_ipv4/ip_set_nethash.h
|
|
|
@@ -0,0 +1,55 @@
|
|
|
+#ifndef __IP_SET_NETHASH_H
|
|
|
+#define __IP_SET_NETHASH_H
|
|
|
@@ -1120,10 +1100,8 @@ Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_nethash.h
|
|
|
+}
|
|
|
+
|
|
|
+#endif /* __IP_SET_NETHASH_H */
|
|
|
-Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_portmap.h
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_portmap.h
|
|
|
++++ b/include/linux/netfilter_ipv4/ip_set_portmap.h
|
|
|
@@ -0,0 +1,25 @@
|
|
|
+#ifndef __IP_SET_PORTMAP_H
|
|
|
+#define __IP_SET_PORTMAP_H
|
|
|
@@ -1150,10 +1128,8 @@ Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ip_set_portmap.h
|
|
|
+};
|
|
|
+
|
|
|
+#endif /* __IP_SET_PORTMAP_H */
|
|
|
-Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ipt_set.h
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/include/linux/netfilter_ipv4/ipt_set.h
|
|
|
++++ b/include/linux/netfilter_ipv4/ipt_set.h
|
|
|
@@ -0,0 +1,21 @@
|
|
|
+#ifndef _IPT_SET_H
|
|
|
+#define _IPT_SET_H
|
|
|
@@ -1176,10 +1152,8 @@ Index: linux-2.6.21.7/include/linux/netfilter_ipv4/ipt_set.h
|
|
|
+};
|
|
|
+
|
|
|
+#endif /*_IPT_SET_H*/
|
|
|
-Index: linux-2.6.21.7/net/ipv4/netfilter/ip_set.c
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/net/ipv4/netfilter/ip_set.c
|
|
|
++++ b/net/ipv4/netfilter/ip_set.c
|
|
|
@@ -0,0 +1,2003 @@
|
|
|
+/* Copyright (C) 2000-2002 Joakim Axelsson <[email protected]>
|
|
|
+ * Patrick Schaaf <[email protected]>
|
|
|
@@ -3184,10 +3158,8 @@ Index: linux-2.6.21.7/net/ipv4/netfilter/ip_set.c
|
|
|
+
|
|
|
+module_init(ip_set_init);
|
|
|
+module_exit(ip_set_fini);
|
|
|
-Index: linux-2.6.21.7/net/ipv4/netfilter/ip_set_iphash.c
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/net/ipv4/netfilter/ip_set_iphash.c
|
|
|
++++ b/net/ipv4/netfilter/ip_set_iphash.c
|
|
|
@@ -0,0 +1,429 @@
|
|
|
+/* Copyright (C) 2003-2004 Jozsef Kadlecsik <[email protected]>
|
|
|
+ *
|
|
|
@@ -3618,10 +3590,8 @@ Index: linux-2.6.21.7/net/ipv4/netfilter/ip_set_iphash.c
|
|
|
+
|
|
|
+module_init(ip_set_iphash_init);
|
|
|
+module_exit(ip_set_iphash_fini);
|
|
|
-Index: linux-2.6.21.7/net/ipv4/netfilter/ip_set_ipmap.c
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/net/ipv4/netfilter/ip_set_ipmap.c
|
|
|
++++ b/net/ipv4/netfilter/ip_set_ipmap.c
|
|
|
@@ -0,0 +1,336 @@
|
|
|
+/* Copyright (C) 2000-2002 Joakim Axelsson <[email protected]>
|
|
|
+ * Patrick Schaaf <[email protected]>
|
|
|
@@ -3959,10 +3929,8 @@ Index: linux-2.6.21.7/net/ipv4/netfilter/ip_set_ipmap.c
|
|
|
+
|
|
|
+module_init(ip_set_ipmap_init);
|
|
|
+module_exit(ip_set_ipmap_fini);
|
|
|
-Index: linux-2.6.21.7/net/ipv4/netfilter/ip_set_ipporthash.c
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/net/ipv4/netfilter/ip_set_ipporthash.c
|
|
|
++++ b/net/ipv4/netfilter/ip_set_ipporthash.c
|
|
|
@@ -0,0 +1,581 @@
|
|
|
+/* Copyright (C) 2003-2004 Jozsef Kadlecsik <[email protected]>
|
|
|
+ *
|
|
|
@@ -4545,10 +4513,8 @@ Index: linux-2.6.21.7/net/ipv4/netfilter/ip_set_ipporthash.c
|
|
|
+
|
|
|
+module_init(ip_set_ipporthash_init);
|
|
|
+module_exit(ip_set_ipporthash_fini);
|
|
|
-Index: linux-2.6.21.7/net/ipv4/netfilter/ip_set_iptree.c
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/net/ipv4/netfilter/ip_set_iptree.c
|
|
|
++++ b/net/ipv4/netfilter/ip_set_iptree.c
|
|
|
@@ -0,0 +1,612 @@
|
|
|
+/* Copyright (C) 2005 Jozsef Kadlecsik <[email protected]>
|
|
|
+ *
|
|
|
@@ -5162,10 +5128,8 @@ Index: linux-2.6.21.7/net/ipv4/netfilter/ip_set_iptree.c
|
|
|
+
|
|
|
+module_init(ip_set_iptree_init);
|
|
|
+module_exit(ip_set_iptree_fini);
|
|
|
-Index: linux-2.6.21.7/net/ipv4/netfilter/ip_set_iptreemap.c
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/net/ipv4/netfilter/ip_set_iptreemap.c
|
|
|
++++ b/net/ipv4/netfilter/ip_set_iptreemap.c
|
|
|
@@ -0,0 +1,829 @@
|
|
|
+/* Copyright (C) 2007 Sven Wegener <[email protected]>
|
|
|
+ *
|
|
|
@@ -5996,10 +5960,8 @@ Index: linux-2.6.21.7/net/ipv4/netfilter/ip_set_iptreemap.c
|
|
|
+
|
|
|
+module_init(ip_set_iptreemap_init);
|
|
|
+module_exit(ip_set_iptreemap_fini);
|
|
|
-Index: linux-2.6.21.7/net/ipv4/netfilter/ip_set_macipmap.c
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/net/ipv4/netfilter/ip_set_macipmap.c
|
|
|
++++ b/net/ipv4/netfilter/ip_set_macipmap.c
|
|
|
@@ -0,0 +1,375 @@
|
|
|
+/* Copyright (C) 2000-2002 Joakim Axelsson <[email protected]>
|
|
|
+ * Patrick Schaaf <[email protected]>
|
|
|
@@ -6376,10 +6338,8 @@ Index: linux-2.6.21.7/net/ipv4/netfilter/ip_set_macipmap.c
|
|
|
+
|
|
|
+module_init(ip_set_macipmap_init);
|
|
|
+module_exit(ip_set_macipmap_fini);
|
|
|
-Index: linux-2.6.21.7/net/ipv4/netfilter/ip_set_nethash.c
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/net/ipv4/netfilter/ip_set_nethash.c
|
|
|
++++ b/net/ipv4/netfilter/ip_set_nethash.c
|
|
|
@@ -0,0 +1,497 @@
|
|
|
+/* Copyright (C) 2003-2004 Jozsef Kadlecsik <[email protected]>
|
|
|
+ *
|
|
|
@@ -6878,10 +6838,8 @@ Index: linux-2.6.21.7/net/ipv4/netfilter/ip_set_nethash.c
|
|
|
+
|
|
|
+module_init(ip_set_nethash_init);
|
|
|
+module_exit(ip_set_nethash_fini);
|
|
|
-Index: linux-2.6.21.7/net/ipv4/netfilter/ip_set_portmap.c
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/net/ipv4/netfilter/ip_set_portmap.c
|
|
|
++++ b/net/ipv4/netfilter/ip_set_portmap.c
|
|
|
@@ -0,0 +1,346 @@
|
|
|
+/* Copyright (C) 2003-2004 Jozsef Kadlecsik <[email protected]>
|
|
|
+ *
|
|
|
@@ -7229,10 +7187,8 @@ Index: linux-2.6.21.7/net/ipv4/netfilter/ip_set_portmap.c
|
|
|
+
|
|
|
+module_init(ip_set_portmap_init);
|
|
|
+module_exit(ip_set_portmap_fini);
|
|
|
-Index: linux-2.6.21.7/net/ipv4/netfilter/ipt_set.c
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/net/ipv4/netfilter/ipt_set.c
|
|
|
++++ b/net/ipv4/netfilter/ipt_set.c
|
|
|
@@ -0,0 +1,160 @@
|
|
|
+/* Copyright (C) 2000-2002 Joakim Axelsson <[email protected]>
|
|
|
+ * Patrick Schaaf <[email protected]>
|
|
|
@@ -7394,10 +7350,8 @@ Index: linux-2.6.21.7/net/ipv4/netfilter/ipt_set.c
|
|
|
+
|
|
|
+module_init(ipt_ipset_init);
|
|
|
+module_exit(ipt_ipset_fini);
|
|
|
-Index: linux-2.6.21.7/net/ipv4/netfilter/ipt_SET.c
|
|
|
-===================================================================
|
|
|
--- /dev/null
|
|
|
-+++ linux-2.6.21.7/net/ipv4/netfilter/ipt_SET.c
|
|
|
++++ b/net/ipv4/netfilter/ipt_SET.c
|
|
|
@@ -0,0 +1,172 @@
|
|
|
+/* Copyright (C) 2000-2002 Joakim Axelsson <[email protected]>
|
|
|
+ * Patrick Schaaf <[email protected]>
|
|
|
@@ -7571,10 +7525,8 @@ Index: linux-2.6.21.7/net/ipv4/netfilter/ipt_SET.c
|
|
|
+
|
|
|
+module_init(ipt_SET_init);
|
|
|
+module_exit(ipt_SET_fini);
|
|
|
-Index: linux-2.6.21.7/net/ipv4/netfilter/Kconfig
|
|
|
-===================================================================
|
|
|
---- linux-2.6.21.7.orig/net/ipv4/netfilter/Kconfig
|
|
|
-+++ linux-2.6.21.7/net/ipv4/netfilter/Kconfig
|
|
|
+--- a/net/ipv4/netfilter/Kconfig
|
|
|
++++ b/net/ipv4/netfilter/Kconfig
|
|
|
@@ -663,5 +663,122 @@ config IP_NF_ARP_MANGLE
|
|
|
Allows altering the ARP packet payload: source and destination
|
|
|
hardware and network addresses.
|
|
|
@@ -7698,10 +7650,8 @@ Index: linux-2.6.21.7/net/ipv4/netfilter/Kconfig
|
|
|
+
|
|
|
endmenu
|
|
|
|
|
|
-Index: linux-2.6.21.7/net/ipv4/netfilter/Makefile
|
|
|
-===================================================================
|
|
|
---- linux-2.6.21.7.orig/net/ipv4/netfilter/Makefile
|
|
|
-+++ linux-2.6.21.7/net/ipv4/netfilter/Makefile
|
|
|
+--- a/net/ipv4/netfilter/Makefile
|
|
|
++++ b/net/ipv4/netfilter/Makefile
|
|
|
@@ -90,6 +90,7 @@ obj-$(CONFIG_IP_NF_MATCH_RECENT) += ipt_
|
|
|
obj-$(CONFIG_IP_NF_MATCH_ECN) += ipt_ecn.o
|
|
|
obj-$(CONFIG_IP_NF_MATCH_AH) += ipt_ah.o
|