Re: [NETFILTER]: Fix skb->nf_bridge lifetime issues
From: Patrick McHardy <hidden>
Date: 2006-02-20 09:33:34
Also in:
netfilter-devel
From: Patrick McHardy <hidden>
Date: 2006-02-20 09:33:34
Also in:
netfilter-devel
Patrick McHardy wrote:
Bart, can you please have a look at this patch and ACK/NACK it?
We have a bugreport in the netfilter bugzilla of broken conntrack
with tunnels on top of bridge devices (#448), which should be cured
by this patch.
+static inline void nf_reset(struct sk_buff *skb)
+{
+ nf_conntrack_put(skb->nfct);
+ skb->nfct = NULL;
+#if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE)
+ nf_conntrack_put_reasm(skb->nfct_reasm);
+ skb->nfct_reasm = NULL;
+#endif
+#ifdef CONFIG_BRIDGE_NETFILTER
+ nf_bridge_put(skb->nfct);
+ skb->nfct = NULL;
+#endif
+}This time compile tested and s/nfct/nf_bridge/ above.