Don't ignore TCP acks received in CLOSE_WAIT state (fixes bug 392)
authorRaj Bhattacharjea <raj.b@gatech.edu>
Wed, 03 Dec 2008 21:09:52 -0500
changeset 3976 f0905724cee0
parent 3975 7a636112d9cd
child 3977 4daeb41d7fc1
Don't ignore TCP acks received in CLOSE_WAIT state (fixes bug 392)
src/internet-stack/tcp-l4-protocol.cc
--- a/src/internet-stack/tcp-l4-protocol.cc	Wed Dec 03 21:08:44 2008 -0500
+++ b/src/internet-stack/tcp-l4-protocol.cc	Wed Dec 03 21:09:52 2008 -0500
@@ -139,7 +139,7 @@
   aT[CLOSE_WAIT][SEQ_RECV]    = SA (CLOSE_WAIT, NEW_SEQ_RX);
   aT[CLOSE_WAIT][APP_CLOSE]   = SA (LAST_ACK,   FIN_ACK_TX);
   aT[CLOSE_WAIT][TIMEOUT]     = SA (CLOSE_WAIT, NO_ACT);
-  aT[CLOSE_WAIT][ACK_RX]      = SA (CLOSE_WAIT, NO_ACT);
+  aT[CLOSE_WAIT][ACK_RX]      = SA (CLOSE_WAIT, NEW_ACK);
   aT[CLOSE_WAIT][SYN_RX]      = SA (CLOSED,     RST_TX);
   aT[CLOSE_WAIT][SYN_ACK_RX]  = SA (CLOSED,     RST_TX);
   aT[CLOSE_WAIT][FIN_RX]      = SA (CLOSE_WAIT, ACK_TX);