[PATCH net-next RFC 7/9] ptp: add offset for reserved field to header

Brandon Streiff
2017-09-28T15:25:39Z

There is a four-byte "reserved" field at octet 16 in PTPv2.

Signed-off-by: Brandon Streiff <brandon.streiff@ni.com>
---
include/linux/ptp_classify.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/include/linux/ptp_classify.h b/include/linux/ptp_classify.h
index a079656..b9b0073 100644
--- a/include/linux/ptp_classify.h
+++ b/include/linux/ptp_classify.h
@@ -47,6 +47,7 @@
#define PTP_EV_PORT 319
#define PTP_GEN_BIT 0x08 /* indicates general message, if set in message type */

+#define OFF_PTP_RESERVED 16 /* PTPv2 only */
#define OFF_PTP_SOURCE_UUID 22 /* PTPv1 only */
#define OFF_PTP_SEQUENCE_ID 30
#define OFF_PTP_CONTROL 32 /* PTPv1 only */
--
2.1.4