patch-2.4.27 linux-2.4.27/include/linux/skbuff.h
Next file: linux-2.4.27/include/linux/sysctl.h
Previous file: linux-2.4.27/include/linux/sisfb.h
Back to the patch index
Back to the overall index
-  Lines: 19
-  Date:
2004-08-07 16:26:06.332415727 -0700
-  Orig file: 
linux-2.4.26/include/linux/skbuff.h
-  Orig date: 
2004-04-14 06:05:40.000000000 -0700
diff -urN linux-2.4.26/include/linux/skbuff.h linux-2.4.27/include/linux/skbuff.h
@@ -1166,7 +1166,18 @@
 	if (nfct)
 		atomic_inc(&nfct->master->use);
 }
+static inline void
+nf_reset(struct sk_buff *skb)
+{
+	nf_conntrack_put(skb->nfct);
+	skb->nfct = NULL;
+#ifdef CONFIG_NETFILTER_DEBUG
+	skb->nf_debug = 0;
 #endif
+}
+#else /* CONFIG_NETFILTER */
+static inline void nf_reset(struct sk_buff *skb) {}
+#endif /* CONFIG_NETFILTER */
 
 #endif	/* __KERNEL__ */
 #endif	/* _LINUX_SKBUFF_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)