fixup V.24 TSBK data offset; correct situation where ACL lists for a host would repeatedly be sent because the last update time was never changed (this could happen if the peer is in progress for traffic, if thats the case just ignore sending updates and wait till next interval to send them);

pull/65/head
Bryan Biedenkapp 2 years ago
parent 4f55a89201
commit 38bce6de04

@ -79,7 +79,7 @@ bool MotTSBKFrame::decode(const uint8_t* data)
// decode start of stream
startOfStream->decode(startBuffer);
::memcpy(tsbkData, data + 8U, P25_TSBK_LENGTH_BYTES);
::memcpy(tsbkData, data + 7U, P25_TSBK_LENGTH_BYTES);
return true;
}
@ -103,6 +103,6 @@ void MotTSBKFrame::encode(uint8_t* data)
// encode TSBK - scope is intentional
{
data[0U] = DFSIFrameType::TSBK;
::memcpy(data + 8U, tsbkData, P25_TSBK_LENGTH_BYTES);
::memcpy(data + 7U, tsbkData, P25_TSBK_LENGTH_BYTES);
}
}

@ -859,8 +859,8 @@ void* FNENetwork::threadedNetworkRx(void* arg)
dt, now);
if (connection->pktLastSeq() == RTP_END_OF_CALL_SEQ) {
network->peerACLUpdate(peerId);
connection->lastACLUpdate(now);
}
connection->lastACLUpdate(now);
}
uint8_t payload[8U];

Loading…
Cancel
Save

Powered by TurnKey Linux.