Skip to content

Commit

Permalink
Fix for issue eclipse-cyclonedds#968
Browse files Browse the repository at this point in the history
- Add byte swap to participant guid prefix

Signed-off-by: Martijn Reicher <martijn.reicher@adlinktech.com>
  • Loading branch information
reicheratwork committed Sep 29, 2021
1 parent 7b64ecc commit d9e414e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/ddsi/src/q_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1552,6 +1552,7 @@ int rtps_init (struct ddsi_domaingv *gv)
gv->ppguid_base.prefix.s[1] = NN_VENDORID_ECLIPSE.id[1];
DDSRT_STATIC_ASSERT (sizeof (gv->ppguid_base.prefix.s) > 2 && sizeof (gv->ppguid_base.prefix.s) - 2 <= sizeof (digest));
memcpy (&gv->ppguid_base.prefix.s[2], digest, sizeof (gv->ppguid_base.prefix.s) - 2);
gv->ppguid_base.prefix = nn_ntoh_guid_prefix (gv->ppguid_base.prefix);
gv->ppguid_base.entityid.u = NN_ENTITYID_PARTICIPANT;
}

Expand Down

0 comments on commit d9e414e

Please sign in to comment.