diff --git a/port.c b/port.c index 82c6166..978fca3 100644 --- a/port.c +++ b/port.c @@ -356,6 +356,10 @@ static int port_delay_request(struct port *p) pr_err("port %hu: send delay request failed", portnum(p)); goto out; } + if (msg_sots_missing(msg)) { + pr_err("missing timestamp on transmitted delay request"); + goto out; + } if (p->delay_req) msg_put(p->delay_req); @@ -466,6 +470,11 @@ static int port_tx_sync(struct port *p) err = -1; goto out; } + if (msg_sots_missing(msg)) { + pr_err("missing timestamp on transmitted sync"); + err = -1; + goto out; + } /* * Send the follow up message right away.