update to track Protolib ProtoPkt changes
parent
2188afe82f
commit
260109ea70
|
|
@ -23,8 +23,9 @@
|
|||
// request is pending acknowledgment. This potentially allows the flow control
|
||||
// to be advanced sooner instead of the sender "chasing its own tail" with the
|
||||
// SHOOT_FIRST strategy. Both strategies are implemented here, because under
|
||||
// certain cases, the SHOOT_FIRST _may_ have benefit. Try them both, and you
|
||||
// decide ...
|
||||
// certain cases, the SHOOT_FIRST _may_ have benefit. For example, low duty cycle
|
||||
// transmission may benefit if acknowledgment is requested after each object.
|
||||
// Try them both, and you decide ...
|
||||
|
||||
// By the way, this SHOOT_FIRST/ACK_LATER only applies to the case when both
|
||||
// the "ack" and "flush" options are used. The "flush" option controls the
|
||||
|
|
|
|||
|
|
@ -113,7 +113,9 @@ int main(int argc, char* argv[])
|
|||
}
|
||||
ethType = ethPkt.GetType();
|
||||
payloadLength = ethPkt.GetPayloadLength();
|
||||
payloadPtr = (UINT32*)ethPkt.AccessPayload();
|
||||
// This is done know we offset the ethBuffer above
|
||||
payloadPtr = alignedBuffer + (2 + ethPkt.GetLength() - ethPkt.GetPayloadLength())/4;
|
||||
//payloadPtr = (UINT32*)ethPkt.AccessPayload();
|
||||
}
|
||||
|
||||
ProtoPktIP ipPkt;
|
||||
|
|
@ -264,7 +266,7 @@ void NormTrace2(const struct timeval& currentTime,
|
|||
seq,
|
||||
//data.IsData() ? "DATA" : "PRTY",
|
||||
(UINT16)data.GetObjectId(),
|
||||
(UINT32)data.GetFecBlockId(fecM),
|
||||
(UINT32)data.GetFecBlockId(fecM).GetValue(),
|
||||
(UINT16)data.GetFecSymbolId(fecM));
|
||||
|
||||
if (data.IsStream())
|
||||
|
|
@ -308,7 +310,7 @@ void NormTrace2(const struct timeval& currentTime,
|
|||
static_cast<const NormCmdSquelchMsg&>(msg);
|
||||
PLOG(PL_ALWAYS, " obj>%hu blk>%lu seg>%hu ",
|
||||
(UINT16)squelch.GetObjectId(),
|
||||
(UINT32)squelch.GetFecBlockId(fecM),
|
||||
(UINT32)squelch.GetFecBlockId(fecM).GetValue(),
|
||||
(UINT16)squelch.GetFecSymbolId(fecM));
|
||||
break;
|
||||
}
|
||||
|
|
@ -318,7 +320,7 @@ void NormTrace2(const struct timeval& currentTime,
|
|||
static_cast<const NormCmdFlushMsg&>(msg);
|
||||
PLOG(PL_ALWAYS, " obj>%hu blk>%lu seg>%hu ",
|
||||
(UINT16)flush.GetObjectId(),
|
||||
(UINT32)flush.GetFecBlockId(fecM),
|
||||
(UINT32)flush.GetFecBlockId(fecM).GetValue(),
|
||||
(UINT16)flush.GetFecSymbolId(fecM));
|
||||
|
||||
// Print acking node list (if any)
|
||||
|
|
|
|||
Loading…
Reference in New Issue