From ecfc44469cbac19bb70f6074f91585afc0f2feb2 Mon Sep 17 00:00:00 2001 From: Tomas Choat Date: Tue, 26 Nov 2024 10:43:22 +0100 Subject: [PATCH] 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 --- subsys/net/lib/ptp/msg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subsys/net/lib/ptp/msg.c b/subsys/net/lib/ptp/msg.c index dac0617b0c0..f3af671b4d8 100644 --- a/subsys/net/lib/ptp/msg.c +++ b/subsys/net/lib/ptp/msg.c @@ -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);