From 49699c783080462f39d064cce7b3fb5234bdf69a Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Sun, 3 Mar 2013 19:35:50 +0100 Subject: [PATCH] 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 --- tlv.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tlv.h b/tlv.h index b437286..9992fc3 100644 --- a/tlv.h +++ b/tlv.h @@ -114,6 +114,11 @@ struct management_tlv { Octet data[0]; } PACKED; +struct management_tlv_datum { + uint8_t val; + uint8_t reserved; +} PACKED; + struct management_error_status { Enumeration16 type; UInteger16 length;