fix ipset bitops not working
[openwrt/svn-archive/archive.git] / package / ipset / patches / 001-kernel_26.patch
1 diff -ruN ipset-2.2.3/ipset.c ipset-2.2.3.new/ipset.c
2 --- ipset-2.2.3/ipset.c 2005-04-05 02:56:02.000000000 -0500
3 +++ ipset-2.2.3.new/ipset.c 2007-05-31 14:05:13.763087750 -0500
4 @@ -21,7 +21,7 @@
5 #include <stdarg.h>
6 #include <netdb.h>
7 #include <dlfcn.h>
8 -#include <asm/bitops.h>
9 +#include <linux/bitops.h>
10
11 #include "ipset.h"
12
13 diff -ruN ipset-2.2.3/ipset_iphash.c ipset-2.2.3.new/ipset_iphash.c
14 --- ipset-2.2.3/ipset_iphash.c 2005-01-19 07:38:57.000000000 -0600
15 +++ ipset-2.2.3.new/ipset_iphash.c 2007-05-31 14:05:32.212240750 -0500
16 @@ -25,7 +25,7 @@
17 #include <sys/types.h>
18 #include <netinet/in.h>
19 #include <arpa/inet.h>
20 -#include <asm/bitops.h>
21 +#include <linux/bitops.h>
22 #include <asm/types.h>
23
24 #include <linux/netfilter_ipv4/ip_set_iphash.h>
25 diff -ruN ipset-2.2.3/ipset_ipmap.c ipset-2.2.3.new/ipset_ipmap.c
26 --- ipset-2.2.3/ipset_ipmap.c 2005-01-19 07:38:57.000000000 -0600
27 +++ ipset-2.2.3.new/ipset_ipmap.c 2007-05-31 14:05:47.969225500 -0500
28 @@ -22,7 +22,7 @@
29 #include <sys/socket.h>
30 #include <netinet/in.h>
31 #include <arpa/inet.h>
32 -#include <asm/bitops.h>
33 +#include <linux/bitops.h>
34
35 #include <linux/netfilter_ipv4/ip_set_ipmap.h>
36 #include "ipset.h"
37 diff -ruN ipset-2.2.3/ipset_macipmap.c ipset-2.2.3.new/ipset_macipmap.c
38 --- ipset-2.2.3/ipset_macipmap.c 2005-01-19 07:38:57.000000000 -0600
39 +++ ipset-2.2.3.new/ipset_macipmap.c 2007-05-31 14:06:17.627079000 -0500
40 @@ -24,7 +24,7 @@
41 #include <sys/socket.h>
42 #include <netinet/in.h>
43 #include <arpa/inet.h>
44 -#include <asm/bitops.h>
45 +#include <linux/bitops.h>
46 #include <linux/if_ether.h>
47
48 #include <linux/netfilter_ipv4/ip_set_macipmap.h>
49 diff -ruN ipset-2.2.3/ipset_nethash.c ipset-2.2.3.new/ipset_nethash.c
50 --- ipset-2.2.3/ipset_nethash.c 2005-05-09 00:44:25.000000000 -0500
51 +++ ipset-2.2.3.new/ipset_nethash.c 2007-05-31 14:06:43.392689250 -0500
52 @@ -25,7 +25,7 @@
53 #include <sys/types.h>
54 #include <netinet/in.h>
55 #include <arpa/inet.h>
56 -#include <asm/bitops.h>
57 +#include <linux/bitops.h>
58 #include <asm/types.h>
59
60 #include <linux/netfilter_ipv4/ip_set_nethash.h>
61 diff -ruN ipset-2.2.3/ipset_portmap.c ipset-2.2.3.new/ipset_portmap.c
62 --- ipset-2.2.3/ipset_portmap.c 2005-01-19 07:38:57.000000000 -0600
63 +++ ipset-2.2.3.new/ipset_portmap.c 2007-05-31 14:06:58.521634750 -0500
64 @@ -21,7 +21,7 @@
65 #include <sys/socket.h>
66 #include <netinet/in.h>
67 #include <arpa/inet.h>
68 -#include <asm/bitops.h>
69 +#include <linux/bitops.h>
70
71 #include <linux/netfilter_ipv4/ip_set_portmap.h>
72 #include "ipset.h"