refresh all package patches in the buildroot using quilt
[openwrt/staging/florian.git] / package / aodv-uu / patches / 002-linux_2.6.19_ip_route_me_harder_change.patch
1 Index: aodv-uu-0.9.3/lnx/kaodv-mod.c
2 ===================================================================
3 --- aodv-uu-0.9.3.orig/lnx/kaodv-mod.c 2007-06-04 13:22:19.830840536 +0200
4 +++ aodv-uu-0.9.3/lnx/kaodv-mod.c 2007-06-04 13:22:20.130794936 +0200
5 @@ -19,7 +19,7 @@
6 * Author: Erik Nordström, <erik.nordstrom@it.uu.se>
7 *
8 *****************************************************************************/
9 -#include <linux/config.h>
10 +#include <linux/autoconf.h>
11 #include <linux/version.h>
12
13 #ifdef KERNEL26
14 @@ -258,7 +258,11 @@
15 if (!(*skb))
16 return NF_STOLEN;
17
18 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
19 + ip_route_me_harder(skb, RTN_UNSPEC);
20 +#else
21 ip_route_me_harder(skb);
22 +#endif
23 }
24 break;
25 case NF_IP_POST_ROUTING:
26 Index: aodv-uu-0.9.3/lnx/kaodv-queue.c
27 ===================================================================
28 --- aodv-uu-0.9.3.orig/lnx/kaodv-queue.c 2007-06-04 13:22:19.837839472 +0200
29 +++ aodv-uu-0.9.3/lnx/kaodv-queue.c 2007-06-04 13:22:20.130794936 +0200
30 @@ -29,6 +29,7 @@
31 #include <linux/spinlock.h>
32 #include <linux/sysctl.h>
33 #include <linux/proc_fs.h>
34 +#include <linux/version.h>
35 #include <net/sock.h>
36 #include <net/route.h>
37 #include <net/icmp.h>
38 @@ -246,7 +247,11 @@
39 if (!entry->skb)
40 goto next;
41 }
42 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
43 + ip_route_me_harder(&entry->skb, RTN_UNSPEC);
44 +#else
45 ip_route_me_harder(&entry->skb);
46 +#endif
47
48 pkts++;
49