static void issuePDelayRespFollowUp(PtpClock *ptpClock, const TimeInternal *time, const MsgHeader * pDelayReqHeader) { Timestamp responseOriginTimestamp; fromInternalTime(time, &responseOriginTimestamp); msgPackPDelayRespFollowUp(ptpClock->msgObuf, pDelayReqHeader, &responseOriginTimestamp); if (!netSendPeerGeneral(&ptpClock->netPath, ptpClock->msgObuf, PDELAY_RESP_FOLLOW_UP_LENGTH)) { ERROR("issuePDelayRespFollowUp: can't sent\n"); toState(ptpClock, PTP_FAULTY); } else { DBGV("issuePDelayRespFollowUp\n"); } }
void issuePDelayRespFollowUp(TimeInternal *time, MsgHeader *header, RunTimeOpts *rtOpts, PtpClock *ptpClock) { Timestamp responseOriginTimestamp; fromInternalTime(time,&responseOriginTimestamp); msgPackPDelayRespFollowUp(ptpClock->msgObuf,header, &responseOriginTimestamp,ptpClock); if (!netSendPeerGeneral(ptpClock->msgObuf, PDELAY_RESP_FOLLOW_UP_LENGTH, &ptpClock->netPath)) { toState(PTP_FAULTY,rtOpts,ptpClock); DBGV("PdelayRespFollowUp message can't be sent -> FAULTY state \n"); } else { DBGV("PDelayRespFollowUp MSG sent ! \n"); } }