diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-02-20 23:39:33 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-02-20 23:39:33 +0000 |
commit | f393bed10e090c5880bf45c65258c9e4c9946833 (patch) | |
tree | 6ea6c8439c879f421e9c78b31227ece5fa1e6b10 /package/aodv-uu/patches/002-linux_2.6.19_ip_route_me_harder_change.patch | |
parent | b37101053aad1afc08f689d32907aafaa3b48b8c (diff) | |
download | mtk-20170518-f393bed10e090c5880bf45c65258c9e4c9946833.zip mtk-20170518-f393bed10e090c5880bf45c65258c9e4c9946833.tar.gz mtk-20170518-f393bed10e090c5880bf45c65258c9e4c9946833.tar.bz2 |
Move aodv-uu to trunk/
SVN-Revision: 6335
Diffstat (limited to 'package/aodv-uu/patches/002-linux_2.6.19_ip_route_me_harder_change.patch')
-rw-r--r-- | package/aodv-uu/patches/002-linux_2.6.19_ip_route_me_harder_change.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/package/aodv-uu/patches/002-linux_2.6.19_ip_route_me_harder_change.patch b/package/aodv-uu/patches/002-linux_2.6.19_ip_route_me_harder_change.patch new file mode 100644 index 0000000..b8b6583 --- /dev/null +++ b/package/aodv-uu/patches/002-linux_2.6.19_ip_route_me_harder_change.patch @@ -0,0 +1,47 @@ +diff -ruN aodv-uu-0.9.3-old/lnx/kaodv-mod.c aodv-uu-0.9.3-new/lnx/kaodv-mod.c +--- aodv-uu-0.9.3-old/lnx/kaodv-mod.c 2006-09-20 19:58:38.000000000 +0200 ++++ aodv-uu-0.9.3-new/lnx/kaodv-mod.c 2006-12-16 22:08:01.000000000 +0100 +@@ -19,7 +19,7 @@ + * Author: Erik Nordström, <erik.nordstrom@it.uu.se> + * + *****************************************************************************/ +-#include <linux/config.h> ++#include <linux/autoconf.h> + #include <linux/version.h> + + #ifdef KERNEL26 +@@ -258,7 +258,11 @@ + if (!(*skb)) + return NF_STOLEN; + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) ++ ip_route_me_harder(skb, RTN_UNSPEC); ++#else + ip_route_me_harder(skb); ++#endif + } + break; + case NF_IP_POST_ROUTING: +diff -ruN aodv-uu-0.9.3-old/lnx/kaodv-queue.c aodv-uu-0.9.3-new/lnx/kaodv-queue.c +--- aodv-uu-0.9.3-old/lnx/kaodv-queue.c 2006-09-20 19:58:38.000000000 +0200 ++++ aodv-uu-0.9.3-new/lnx/kaodv-queue.c 2006-12-16 22:17:16.000000000 +0100 +@@ -29,6 +29,7 @@ + #include <linux/spinlock.h> + #include <linux/sysctl.h> + #include <linux/proc_fs.h> ++#include <linux/version.h> + #include <net/sock.h> + #include <net/route.h> + #include <net/icmp.h> +@@ -246,7 +247,11 @@ + if (!entry->skb) + goto next; + } ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) ++ ip_route_me_harder(&entry->skb, RTN_UNSPEC); ++#else + ip_route_me_harder(&entry->skb); ++#endif + + pkts++; + |