Author: luka
Date: 2016-05-11 00:36:30 +0200 (Wed, 11 May 2016)
New Revision: 49328

Modified:
   
trunk/target/linux/generic/patches-4.4/666-Add-support-for-MAP-E-FMRs-mesh-mode.patch
Log:
kernel: fix ip6_tunnel compilation

Replace undefined iph for ip_hdr(skb)

Signed-off-by: Alvaro Fernandez Rojas <[email protected]>

Modified: 
trunk/target/linux/generic/patches-4.4/666-Add-support-for-MAP-E-FMRs-mesh-mode.patch
===================================================================
--- 
trunk/target/linux/generic/patches-4.4/666-Add-support-for-MAP-E-FMRs-mesh-mode.patch
       2016-05-10 22:36:28 UTC (rev 49327)
+++ 
trunk/target/linux/generic/patches-4.4/666-Add-support-for-MAP-E-FMRs-mesh-mode.patch
       2016-05-10 22:36:30 UTC (rev 49328)
@@ -311,13 +311,13 @@
 +      for (fmr = t->parms.fmrs; fmr; fmr = fmr->next) {
 +              unsigned mshift = 32 - fmr->ip4_prefix_len;
 +              if (ntohl(fmr->ip4_prefix.s_addr) >> mshift ==
-+                              ntohl(iph->daddr) >> mshift)
++                              ntohl(ip_hdr(skb)->daddr) >> mshift)
 +                      break;
 +      }
 +
 +      /* change dstaddr according to FMR */
 +      if (fmr)
-+              ip4ip6_fmr_calc(&fl6.daddr, iph, skb_tail_pointer(skb), fmr, 
true);
++              ip4ip6_fmr_calc(&fl6.daddr, ip_hdr(skb), skb_tail_pointer(skb), 
fmr, true);
 +
        err = ip6_tnl_xmit2(skb, dev, dsfield, &fl6, encap_limit, &mtu);
        if (err != 0) {
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to