netdev
[Top] [All Lists]

[PATCH] fix build problem with IPV6

To: YOSHIFUJI Hideaki <yoshfuji@xxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxx>
Subject: [PATCH] fix build problem with IPV6
From: Stephen Hemminger <shemminger@xxxxxxxx>
Date: Fri, 15 Aug 2003 14:07:40 -0700
Cc: netdev@xxxxxxxxxxx
Organization: Open Source Development Lab
Sender: netdev-bounce@xxxxxxxxxxx
IPV6 won't build in current 2.6.0-test3 tree unless CONFIG_XFRM is defined
because of reference to xfrm6_fini.

The linux way to fix this would be to make the functions
stub's in the include file, but that isn't how IPV6 does it now
for other xfrm functions.

diff -Nru a/net/ipv6/route.c b/net/ipv6/route.c
--- a/net/ipv6/route.c  Fri Aug 15 14:04:05 2003
+++ b/net/ipv6/route.c  Fri Aug 15 14:04:05 2003
@@ -2000,7 +2000,9 @@
        proc_net_remove("ipv6_route");
        proc_net_remove("rt6_stats");
 #endif
+#ifdef CONFIG_XFRM
        xfrm6_fini();
+#endif
        rt6_ifdown(NULL);
        fib6_gc_cleanup();
        kmem_cache_destroy(ip6_dst_ops.kmem_cachep);

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