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

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)