[netfilter-cvslog] r4317 - trunk/nfsim/tools

rusty at netfilter.org rusty at netfilter.org
Thu Oct 6 11:38:38 CEST 2005


Author: rusty at netfilter.org
Date: 2005-10-06 11:38:37 +0200 (Thu, 06 Oct 2005)
New Revision: 4317

Modified:
   trunk/nfsim/tools/tcpsession.c
Log:
>From Max Kellerman:

the "tcpsession CLOSE" command misses the final "ACK" packet, this
patch implements it.  Without it, netfilter will not clean up its
conntrack tables correctly after the TCP connection is closed.



Modified: trunk/nfsim/tools/tcpsession.c
===================================================================
--- trunk/nfsim/tools/tcpsession.c	2005-10-05 16:33:52 UTC (rev 4316)
+++ trunk/nfsim/tools/tcpsession.c	2005-10-06 09:38:37 UTC (rev 4317)
@@ -239,6 +239,10 @@
 	out->ack++;
 	if (!tcp_send(out, in, 0, "FIN/ACK", NULL, 0, NULL))
 		return false;
+	out->seq++;
+	in->ack++;
+	if (!tcp_send(in, out, 0, "ACK", NULL, 0, NULL))
+		return false;
 	talloc_free(curr);
 	curr = NULL;
 	return true;




More information about the netfilter-cvslog mailing list