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:
Tomas Choat 2024-11-26 10:43:22 +01:00 committed by Benjamin Cabé
commit ecfc44469c

View file

@ -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);