A "packet set" can span multiple PacketSequences - the outermost loop during transmission should increment in units of PacketSet rather than PacketSequence

Fixes issue 116
This commit is contained in:
Giorgio Buffa 2013-11-22 19:05:34 +05:30
parent 68c95ba8d9
commit 05cf3bdc5f

View File

@ -502,7 +502,8 @@ void PcapPort::PortTransmitter::run()
packetSequenceList_.at(i)->usecDuration_);
}
for(i = 0; i < packetSequenceList_.size(); i++)
i = 0;
while (i < packetSequenceList_.size())
{
_restart:
@ -566,6 +567,9 @@ _restart:
}
}
}
// Move to the next Packet Set
i += rptSz;
}
if (returnToQIdx_ >= 0)