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

SVN-Revision: 8156
This commit is contained in:
Florian Fainelli 2007-07-25 14:00:45 +00:00
parent a6291dd47e
commit ecabac0388

View file

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