1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-28 16:54:15 +02:00

Fix aodv-uu compilation on 2.4 kernels (#2116)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8156 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2007-07-25 14:00:45 +00:00
parent d9b343cbb5
commit 5973792c3f

View File

@ -9,7 +9,7 @@ Index: aodv-uu-0.9.3/lnx/kaodv-compat.h
+#include <linux/version.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
+
+#define ip_hdr(_skb) _skb->nh.iph
+#define ip_hdr(_skb) (_skb)->nh.iph
+#define skb_reset_network_header(_skb) do { \
+ _skb->nh.iph = (struct iphdr *)_skb->data; \
+ } while (0);