Hi Howard,
I have been looking at the latest PTPd version and the changes seem substantial. I'm not sure what is the best method to try to update without massive efforts. Do you have a good strategy you can share to avoid dealing too much with massive reconstruction to cleanup compiler errors? I was trying to update the hybrid mode to use the master IP address for the delay requests but it always uses the multicast address and the master will not respond to this when in hybrid mode. Can you take a look at this to see why this request is not working?
/*Pack and send on event multicast ip adress a DelayReq message*/
void
issueDelayReq(RunTimeOpts *rtOpts,PtpClock *ptpClock)
{
Timestamp originTimestamp;
TimeInternal internalTime;
DBG("==> Issue DelayReq (%d)\n", ptpClock->sentDelayReqSequenceId );
/* call GTOD. This time is later replaced on handle_delayreq, to get the actual send timestamp from the OS */
getTime(&internalTime);
fromInternalTime(&internalTime,&originTimestamp);
// uses current sentDelayReqSequenceId
msgPackDelayReq(ptpClock->msgObuf,&originTimestamp,ptpClock);
Integer32 dst = 0;
#ifdef PTP_EXPERIMENTAL
if (rtOpts->do_hybrid_mode) {
dst = ptpClock->MasterAddr;
}
#endif