[Linuxptp-devel] [PATCH RFC V1 06/18] msg: Allow tacking a TLV onto a delay request message.
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Richard C. <ric...@gm...> - 2018-01-02 04:06:04
|
This will be needed in order to support the NetSync Monitor protocol. Signed-off-by: Richard Cochran <ric...@gm...> --- msg.c | 2 ++ msg.h | 1 + 2 files changed, 3 insertions(+) diff --git a/msg.c b/msg.c index 29af416..6a4fc9a 100644 --- a/msg.c +++ b/msg.c @@ -282,6 +282,7 @@ int msg_post_recv(struct ptp_message *m, int cnt) timestamp_post_recv(m, &m->sync.originTimestamp); break; case DELAY_REQ: + suffix = m->delay_req.suffix; break; case PDELAY_REQ: break; @@ -341,6 +342,7 @@ int msg_pre_send(struct ptp_message *m) case SYNC: break; case DELAY_REQ: + suffix = m->delay_req.suffix; break; case PDELAY_REQ: break; diff --git a/msg.h b/msg.h index 12e6ce8..d4f237e 100644 --- a/msg.h +++ b/msg.h @@ -114,6 +114,7 @@ struct sync_msg { struct delay_req_msg { struct ptp_header hdr; struct Timestamp originTimestamp; + uint8_t suffix[0]; } PACKED; struct follow_up_msg { -- 2.11.0 |