[Sumover-dev] [svn commit] r4324 - vic/branches/cc/cc
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Mon Nov 17 22:44:58 GMT 2008
Author: soohyunc
Date: Mon Nov 17 22:44:57 2008
New Revision: 4324
Modified:
vic/branches/cc/cc/tfwc_rcvr.cpp
Log:
o added a variable which can be used for the number of elements in the received
AckVec (say, the 'tfwcAV' variable)
Modified: vic/branches/cc/cc/tfwc_rcvr.cpp
==============================================================================
--- vic/branches/cc/cc/tfwc_rcvr.cpp (original)
+++ vic/branches/cc/cc/tfwc_rcvr.cpp Mon Nov 17 22:44:57 2008
@@ -55,8 +55,8 @@
void TfwcRcvr::tfwc_rcvr_recv(u_int16_t type, u_int16_t seqno,
u_int16_t ackofack, u_int32_t ts)
{
- // count and offset
- int cnt, offset;
+ // variables
+ int cnt, offset, num;
// parse the received seqno and ackofack
if (type == XR_BT_1) {
@@ -82,6 +82,9 @@
// then, set this packet as received (this is important)
SET_BIT_VEC(tfwcAV, 1);
}
+
+ // number of elements in tfwcAV
+ num = currseq_ - ackofack_ -cnt;
// trim ackvec
offset = currseq_ - ackofack_;
More information about the Sumover-dev
mailing list