[netfilter-cvslog] r3339 - trunk/nfsim/kernelenv/include

rusty at netfilter.org rusty at netfilter.org
Mon Dec 13 05:33:43 CET 2004


Author: rusty at netfilter.org
Date: 2004-12-13 05:33:42 +0100 (Mon, 13 Dec 2004)
New Revision: 3339

Modified:
   trunk/nfsim/kernelenv/include/kernelenv.h
Log:
nf_reset introduced in 2.6.8: make 2.6.8 build.


Modified: trunk/nfsim/kernelenv/include/kernelenv.h
===================================================================
--- trunk/nfsim/kernelenv/include/kernelenv.h	2004-12-13 04:11:27 UTC (rev 3338)
+++ trunk/nfsim/kernelenv/include/kernelenv.h	2004-12-13 04:33:42 UTC (rev 3339)
@@ -495,6 +495,10 @@
 	if (nfct)
 		atomic_inc(&nfct->use);
 }
+void (*ip_ct_attach)(struct sk_buff *, struct sk_buff *);
+#endif /* 2.6.9 */
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,8)
 static inline void nf_reset(struct sk_buff *skb)
 {
 	nf_conntrack_put(skb->nfct);
@@ -509,8 +513,7 @@
 	skb->nf_debug = 0;
 #endif
 }
-void (*ip_ct_attach)(struct sk_buff *, struct sk_buff *);
-#endif /* 2.6.9 */
+#endif /* >= 2.6.8 */
 
 extern void nf_ct_attach(struct sk_buff *, struct sk_buff *);
 




More information about the netfilter-cvslog mailing list