net: lib: ptp: fix follow up msg bug
When sending follow up messages, the pre send function does not insert the correct time stamp in the message. Issue is fixed by calling the pre send timestamp function. Signed-off-by: Tomas Choat <trc@ixys.no>
This commit is contained in:
parent
072a430cea
commit
ecfc44469c
1 changed files with 1 additions and 0 deletions
|
@ -328,6 +328,7 @@ void ptp_msg_pre_send(struct ptp_msg *msg)
|
|||
msg_port_id_pre_send(&msg->pdelay_resp.req_port_id);
|
||||
break;
|
||||
case PTP_MSG_FOLLOW_UP:
|
||||
msg_timestamp_pre_send(&msg->follow_up.precise_origin_timestamp);
|
||||
break;
|
||||
case PTP_MSG_DELAY_RESP:
|
||||
msg_timestamp_pre_send(&msg->delay_resp.receive_timestamp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue