Add an all purpose, single byte management TLV.

Many of the single field management messages have just two bytes, one for
the data value and one for padding. This patch adds a structure that can
be used for all of these management IDs.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2013-03-03 19:35:50 +01:00
parent e4f1450416
commit 49699c7830
1 changed files with 5 additions and 0 deletions

5
tlv.h
View File

@ -114,6 +114,11 @@ struct management_tlv {
Octet data[0]; Octet data[0];
} PACKED; } PACKED;
struct management_tlv_datum {
uint8_t val;
uint8_t reserved;
} PACKED;
struct management_error_status { struct management_error_status {
Enumeration16 type; Enumeration16 type;
UInteger16 length; UInteger16 length;