[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(usagi-users 02584) Re: [usagi-announce] 2003/10/28 snapshot



I tried to compile ip6_conntrack as a module.
It seems it can't compile as a module without that patch
Is it correct ?

diff -ru linux-2.6.0-test9+usagi-s0031027/include/linux/netfilter.h linux26/include/linux/netfilter.h
--- linux-2.6.0-test9+usagi-s0031027/include/linux/netfilter.h  2003-10-27 17:33:37.000000000 +0100
+++ linux26/include/linux/netfilter.h   2003-10-27 16:33:07.000000000 +0100
@@ -155,7 +155,7 @@
 
 extern void (*ip_ct_attach)(struct sk_buff *, struct nf_ct_info *);
 
-#ifdef CONFIG_IPV6
+#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
 extern void (*ip6_ct_attach)(struct sk_buff *, struct nf_ct_info *);
 #endif
 
diff -ru linux-2.6.0-test9+usagi-s0031027/net/core/netfilter.c linux26/net/core/netfilter.c
--- linux-2.6.0-test9+usagi-s0031027/net/core/netfilter.c       2003-10-27 17:33:37.000000000 +0100
+++ linux26/net/core/netfilter.c        2003-10-27 16:48:16.000000000 +0100
@@ -749,7 +749,7 @@
    and hence manufactured ICMP or RST packets will not be associated
    with it. */
 void (*ip_ct_attach)(struct sk_buff *, struct nf_ct_info *);
-#ifdef CONFIG_IPV6
+#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
 void (*ip6_ct_attach)(struct sk_buff *, struct nf_ct_info *);
 #endif
 
@@ -764,7 +764,7 @@
 }
 
 EXPORT_SYMBOL(ip_ct_attach);
-#ifdef CONFIG_IPV6
+#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
 EXPORT_SYMBOL(ip6_ct_attach);
 #endif
 EXPORT_SYMBOL(ip_route_me_harder);


-- 
Laurent