[Sumover-dev] [svn commit] r4506 - vic/branches/cc/cc

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Thu Aug 6 16:31:48 BST 2009


Author: soohyunc
Date: Thu Aug  6 16:31:47 2009
New Revision: 4506

Modified:
   vic/branches/cc/cc/tfwc_rcvr.cpp

Log:
'z' value wasn't updated properly. this value is important when there are more
than 16 packet losses (currently, 16 is the AckVec's bitmap size.)


Modified: vic/branches/cc/cc/tfwc_rcvr.cpp
==============================================================================
--- vic/branches/cc/cc/tfwc_rcvr.cpp	(original)
+++ vic/branches/cc/cc/tfwc_rcvr.cpp	Thu Aug  6 16:31:47 2009
@@ -73,7 +73,7 @@
 	if (type == XR_BT_1) {
 		// received data packet seqno
 		currseq_ = seqno;
-		// XXX received ackofack (currently only one chunk)
+		// received ackofack 
 		ackofack_ = ntohs(chunk[num_chunks-1]);
 
 		// number of AckVec element
@@ -156,6 +156,10 @@
 					}
 				}
 
+				// we need to update 'z' accordingly
+				// (at this point, 'z' should be equal to 'numLoss')
+				z = numLoss%BITLEN;
+
 				// finally, fill up zeros at the latest AckVec chunk
 				for (int i = 0; i < z; i++) {
 					SET_BIT_VEC(tfwcAV[prevNumVec_+addiNumVec-1], 0);



More information about the Sumover-dev mailing list