From 8b8576428f6f585f1b8549658d148e9f9de2c187 Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Sat, 9 Jun 2012 20:51:58 +0200 Subject: [PATCH] Fix the TLV structure declaration for actual use later. This structure is not very useful for message parsing. This commit fixes the declaration in preparation for TLV handling. Signed-off-by: Richard Cochran --- ddt.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ddt.h b/ddt.h index 5a202eb..f142f8e 100644 --- a/ddt.h +++ b/ddt.h @@ -61,10 +61,10 @@ struct ClockQuality { } PACKED; struct TLV { - Enumeration16 tlvType; + Enumeration16 type; UInteger16 length; /* must be even */ - Octet *value; -}; + Octet value[0]; +} PACKED; struct PTPText { UInteger8 length;