netdev
[Top] [All Lists]

Re: [PATCH][2.6] fix compilation w/o CONFIG_XFRM

To: netdev@xxxxxxxxxxx
Subject: Re: [PATCH][2.6] fix compilation w/o CONFIG_XFRM
From: Marcelo Abreu <skewer@xxxxxxxxxxxx>
Date: Sat, 18 Oct 2003 23:42:51 -0300
Cc: davem@xxxxxxxxxx
In-reply-to: <Pine.LNX.4.53.0310180300500.2831@xxxxxxxxxxxxxxxxxxxxx>
References: <Pine.LNX.4.53.0310180300500.2831@xxxxxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030915

        In case it's not fixed yet...

        I'm just reusing the patch from Zwane Mwaikambo for sit.c, now to
fix compilation of ip6_tunnel.c.

        Please verify.


--- linux-2.6.0-test8-a/net/ipv6/ip6_tunnel.c     2003-10-18 23:16:42.000000000 
-0300
+++ linux-2.6.0-test8-b/net/ipv6/ip6_tunnel.c     2003-10-18 23:17:03.000000000 
-0300
@@ -515,8 +515,10 @@
                       read_unlock(&ip6ip6_lock);
                       goto discard;
               }
+#ifdef CONFIG_XFRM
               secpath_put(skb->sp);
               skb->sp = NULL;
+#endif
               skb->mac.raw = skb->nh.raw;
               skb->nh.raw = skb->data;
               skb->protocol = htons(ETH_P_IPV6);



<Prev in Thread] Current Thread [Next in Thread>