Add an incrementing tag id to T-Tag packets
This commit is contained in:
parent
90a3731a90
commit
072dfcdc3b
@ -432,6 +432,7 @@ int PcapTxThread::sendQueueTransmit(pcap_t *p, PacketSequence *seq,
|
||||
&& ((stats_->pkts % seq->ttagPktInterval_) == 0)) {
|
||||
ttagPkt = true;
|
||||
*(pkt+pktLen-5) = SignProtocol::kTypeLenTtag;
|
||||
*(pkt+pktLen-6) = ttagId_++;
|
||||
if (seq->ttagL4CksumOffset_) {
|
||||
quint16 *cksum = reinterpret_cast<quint16*>(
|
||||
pkt + seq->ttagL4CksumOffset_);
|
||||
@ -467,6 +468,7 @@ int PcapTxThread::sendQueueTransmit(pcap_t *p, PacketSequence *seq,
|
||||
// Revert T-Tag packet changes
|
||||
if (ttagPkt) {
|
||||
*(pkt+pktLen-5) = SignProtocol::kTypeLenTtagPlaceholder;
|
||||
*(pkt+pktLen-6) = 0;
|
||||
if (seq->ttagL4CksumOffset_) {
|
||||
quint16 *cksum = reinterpret_cast<quint16*>(
|
||||
pkt + seq->ttagL4CksumOffset_);
|
||||
|
@ -93,6 +93,7 @@ private:
|
||||
StatsTuple *stats_;
|
||||
StatsTuple lastStats_;
|
||||
StreamStats streamStats_;
|
||||
quint8 ttagId_{0};
|
||||
|
||||
double lastTxDuration_{0.0}; // in secs
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user