Open inchoel opened 5 years ago
@inchoel - good catch. Do you want to submit a pull request to the ArtAndLogic-aPTP-changes
branch?
@andrew-elder Yes, I want to Thank you.
@andrew-elder , @rrousselArtLogic I created a pull request for this. https://github.com/rroussel/OpenAvnu/pull/2
https://github.com/rroussel/OpenAvnu/tree/ArtAndLogic-aPTP-changes/daemons/gptp
diff --git a/daemons/gptp/common/ptp_message.cpp b/daemons/gptp/common/ptp_message.cpp index bc5b0e0..4406383 100644 --- a/daemons/gptp/common/ptp_message.cpp +++ b/daemons/gptp/common/ptp_message.cpp @@ -885,7 +885,7 @@ std::shared_ptr buildPTPMessage
PTP_ANNOUNCE_GRANDMASTER_PRIORITY2
(PTP_ANNOUNCE_OFFSET),
sizeof(annc->grandmasterPriority2));
/ - memcpy(&(annc->grandmasterIdentity), // <-- have to remove '&'
/ + memcpy((annc->grandmasterIdentity),
buf +
PTP_ANNOUNCE_GRANDMASTER_IDENTITY
(PTP_ANNOUNCE_OFFSET),