From ba5c5704e6311dae2356f2d46b79d87065d9674d Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Sun, 5 Aug 2012 14:04:12 +0200 Subject: [PATCH] Move the protocol version macro to a public header. This will be needed by the management client program. Signed-off-by: Richard Cochran --- msg.h | 2 ++ port.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/msg.h b/msg.h index f9ae85a..44c6134 100644 --- a/msg.h +++ b/msg.h @@ -27,6 +27,8 @@ #include "ddt.h" #include "transport.h" +#define PTP_VERSION 2 + /* Values for the messageType field */ #define SYNC 0x0 #define DELAY_REQ 0x1 diff --git a/port.c b/port.c index a13da2a..c389b23 100644 --- a/port.c +++ b/port.c @@ -38,8 +38,6 @@ #define PORT_MAVE_LENGTH 10 -#define PTP_VERSION 2 - struct port { char *name; struct clock *clock;