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 <richardcochran@gmail.com>
master
Richard Cochran 2012-06-09 20:51:58 +02:00
parent ff44e305b1
commit 8b8576428f
1 changed files with 3 additions and 3 deletions

6
ddt.h
View File

@ -61,10 +61,10 @@ struct ClockQuality {
} PACKED; } PACKED;
struct TLV { struct TLV {
Enumeration16 tlvType; Enumeration16 type;
UInteger16 length; /* must be even */ UInteger16 length; /* must be even */
Octet *value; Octet value[0];
}; } PACKED;
struct PTPText { struct PTPText {
UInteger8 length; UInteger8 length;