From 018ba27ff8220a01ef616a7bdb2f862467ca4675 Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Sun, 3 Jun 2012 19:11:36 +0200 Subject: [PATCH] Add declarations for the signaling and management message types. Signed-off-by: Richard Cochran --- msg.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/msg.h b/msg.h index 517e173..1880d1f 100644 --- a/msg.h +++ b/msg.h @@ -132,6 +132,22 @@ struct pdelay_resp_fup_msg { uint8_t suffix[0]; } PACKED; +struct signaling_msg { + struct ptp_header hdr; + struct PortIdentity targetPortIdentity; + uint8_t suffix[0]; +} PACKED; + +struct management_msg { + struct ptp_header hdr; + struct PortIdentity targetPortIdentity; + UInteger8 startingBoundaryHops; + UInteger8 boundaryHops; + uint8_t flags; /* reserved | actionField */ + uint8_t reserved; + uint8_t suffix[0]; +} PACKED; + struct ptp_message { union { struct ptp_header header; @@ -143,6 +159,8 @@ struct ptp_message { struct pdelay_req_msg pdelay_req; struct pdelay_resp_msg pdelay_resp; struct pdelay_resp_fup_msg pdelay_resp_fup; + struct signaling_msg signaling; + struct management_msg management; } PACKED; /**/ int tail_room;