Skip to content

Commit 13f3003

Browse files
Setting vendor_id on received CacheChange_t (#4978) (#5030)
* Refs #21213. Setting vendor_id on received CacheChange_t * Refs #21213. Add info to versions.md * Refs #21213. Restore submodule --------- (cherry picked from commit 6c051ae) Signed-off-by: eduponz <[email protected]> Co-authored-by: Ricardo González <[email protected]>
1 parent 4a6b934 commit 13f3003

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/cpp/rtps/messages/MessageReceiver.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,9 @@ bool MessageReceiver::proc_Submsg_Data(
812812
return false;
813813
}
814814

815+
// Get the vendor id
816+
ch.vendor_id = source_vendor_id_;
817+
815818
//Jump ahead if more parameters are before inlineQos (not in this version, maybe if further minor versions.)
816819
if (octetsToInlineQos > RTPSMESSAGE_OCTETSTOINLINEQOS_DATASUBMSG)
817820
{
@@ -988,6 +991,9 @@ bool MessageReceiver::proc_Submsg_DataFrag(
988991
return false;
989992
}
990993

994+
// Get the vendor id
995+
ch.vendor_id = source_vendor_id_;
996+
991997
// READ FRAGMENT NUMBER
992998
uint32_t fragmentStartingNum;
993999
valid &= CDRMessage::readUInt32(msg, &fragmentStartingNum);

versions.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Forthcoming
22
-----------
33

44
* Added new `flow_controller_descriptor_list` XML configuration.
5+
* Setting vendor_id in the received CacheChange_t for Data and DataFrag.
56

67
Version 2.14.0
78
--------------

0 commit comments

Comments
 (0)