Changeset 4503
- Timestamp:
- 08/04/09 21:27:40 (4 years ago)
- Files:
-
- 1 modified
-
vic/branches/cc/cc/tfwc_sndr.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vic/branches/cc/cc/tfwc_sndr.cpp
r4501 r4503 210 210 // (i.e., number of packets in AckVec) 211 211 int numElm = ends_ - begins_; 212 int x = numElm%BITLEN; 212 213 213 214 // start of seqvec … … 216 217 int i, j, k = 0; 217 218 for (i = 0; i < num_chunks-1; i++) { 218 for (j = 0; j < 16; j++) {219 for (j = 0; j < BITLEN; j++) { 219 220 if ( CHECK_BIT_AT(ackvec[i], (j+1)) ) 220 221 seqvec_[k%SSZ] = start; … … 224 225 } 225 226 226 int a = ( numElm%16 == 0) ? 16 : numElm%16;227 int a = (x == 0) ? BITLEN : x; 227 228 for (i = 0; i < a; i++) { 228 229 if ( CHECK_BIT_AT(ackvec[num_chunks-1], i+1 ))
