Bump FSFW #31
@ -356,15 +356,15 @@ ReturnValue_t cfdp::DestHandler::startTransaction(MetadataPduReader& reader,
|
|||||||
transactionParams.fileSize);
|
transactionParams.fileSize);
|
||||||
params.destFileName = transactionParams.destName.data();
|
params.destFileName = transactionParams.destName.data();
|
||||||
params.sourceFileName = transactionParams.sourceName.data();
|
params.sourceFileName = transactionParams.sourceName.data();
|
||||||
unsigned tlvIdx = 0;
|
params.numberOfMsgsToUser = 0;
|
||||||
for (const auto& opt : tlvVec) {
|
for (const auto& opt : tlvVec) {
|
||||||
if (opt.getType() == TlvType::MSG_TO_USER) {
|
if (opt.getType() == TlvType::MSG_TO_USER) {
|
||||||
msgToUserVec[tlvIdx] = MessageToUserTlv(opt.getValue(), opt.getLengthField());
|
msgToUserVec[params.numberOfMsgsToUser] =
|
||||||
tlvIdx++;
|
MessageToUserTlv(opt.getValue(), opt.getLengthField());
|
||||||
|
params.numberOfMsgsToUser++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
params.msgsToUserArray = msgToUserVec.data();
|
params.msgsToUserArray = msgToUserVec.data();
|
||||||
params.msgsToUserLen = tlvIdx;
|
|
||||||
destParams.user.metadataRecvdIndication(params);
|
destParams.user.metadataRecvdIndication(params);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ struct MetadataRecvdParams {
|
|||||||
Fss fileSize{};
|
Fss fileSize{};
|
||||||
const char* sourceFileName = "";
|
const char* sourceFileName = "";
|
||||||
const char* destFileName = "";
|
const char* destFileName = "";
|
||||||
size_t msgsToUserLen = 0;
|
size_t numberOfMsgsToUser = 0;
|
||||||
const MessageToUserTlv* msgsToUserArray = nullptr;
|
const MessageToUserTlv* msgsToUserArray = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user