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
parent
ff44e305b1
commit
8b8576428f
6
ddt.h
6
ddt.h
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue