Sorry, if you already know. I guess lines: while (seen_[next & MWM]) { ++next; numToDeliver += seen_[next & MWM]; } in Acker::Update in tcp-sink.cc should be changed to while (seen_[next & MWM]) { numToDeliver += seen_[next & MWM]; ++next; }