All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/3] set SEEN_REPLY before destroying conntrack on TCP RST
@ 2008-05-22  9:13 Fabian Hugelshofer
  2008-05-26 18:25 ` Fabian Hugelshofer
  0 siblings, 1 reply; 9+ messages in thread
From: Fabian Hugelshofer @ 2008-05-22  9:13 UTC (permalink / raw)
  To: netfilter-devel

If a connection fails with a TCP reset, the conntrack is destroyed 
immediately. This patch sets the SEEN_REPLY bit before destroying the 
conntrack.

--- linux-2.6.25.4.orig/net/netfilter/nf_conntrack_proto_tcp.c	2008-05-20 21:05:06.000000000 +0100
+++ linux-2.6.25.4/net/netfilter/nf_conntrack_proto_tcp.c	2008-05-21 09:41:15.000000000 +0100
@@ -962,6 +962,8 @@
 		   problem case, so we can delete the conntrack
 		   immediately.  --RR */
 		if (th->rst) {
+			if (ctinfo >= IP_CT_IS_REPLY)
+				set_bit(IPS_SEEN_REPLY_BIT, &ct->status);
 			if (del_timer(&ct->timeout))
 				ct->timeout.function((unsigned long)ct);
 			return NF_ACCEPT;


--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-06-10  9:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-22  9:13 [PATCH 2/3] set SEEN_REPLY before destroying conntrack on TCP RST Fabian Hugelshofer
2008-05-26 18:25 ` Fabian Hugelshofer
2008-05-27  4:53   ` Patrick McHardy
2008-05-27 14:33     ` Fabian Hugelshofer
2008-05-27 14:48       ` Patrick McHardy
2008-05-27 22:55         ` [PATCH 2/3] accounting on ct kill (was: set SEEN_REPLY before destroying conntrack on TCP RST) Fabian Hugelshofer
2008-05-28  4:07           ` [PATCH 2/3] accounting on ct kill Patrick McHardy
2008-05-28  8:36             ` Fabian Hugelshofer
2008-06-10  9:22               ` Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.