diff --git a/clock.h b/clock.h index e096dfa..d866762 100644 --- a/clock.h +++ b/clock.h @@ -34,6 +34,14 @@ struct ptp_message; /*forward declaration*/ /** Opaque type. */ struct clock; +enum clock_type { + CLOCK_TYPE_ORDINARY = 0x8000, + CLOCK_TYPE_BOUNDARY = 0x4000, + CLOCK_TYPE_P2P = 0x2000, + CLOCK_TYPE_E2E = 0x1000, + CLOCK_TYPE_MANAGEMENT = 0x0800, +}; + /** * Obtains a reference to the best foreign master of a clock. * @param c The clock instance. diff --git a/tlv.h b/tlv.h index 504e269..c345afe 100644 --- a/tlv.h +++ b/tlv.h @@ -213,14 +213,6 @@ struct port_properties_np { struct PTPText interface; } PACKED; -enum clock_type { - CLOCK_TYPE_ORDINARY = 0x8000, - CLOCK_TYPE_BOUNDARY = 0x4000, - CLOCK_TYPE_P2P = 0x2000, - CLOCK_TYPE_E2E = 0x1000, - CLOCK_TYPE_MANAGEMENT = 0x0800, -}; - #define PROFILE_ID_LEN 6 struct mgmt_clock_description {