Fix IPMI request / response sizes

parent a497387f
......@@ -174,7 +174,7 @@ typedef struct __attribute__((packed)) ipmi_request_message
uint8_t netfn_lun;
uint8_t sequence;
uint8_t command;
uint8_t data[256 - BASE_IPMI_REQUEST_LENGTH];
uint8_t data[256 - (BASE_IPMI_REQUEST_LENGTH + 1)];
} ipmi_request_message_t;
typedef struct __attribute__((packed)) ipmi_response_message
......@@ -184,7 +184,7 @@ typedef struct __attribute__((packed)) ipmi_response_message
uint8_t sequence;
uint8_t command;
uint8_t completion_code;
uint8_t data[256 - BASE_IPMI_REQUEST_LENGTH];
uint8_t data[256 - (BASE_IPMI_RESPONSE_LENGTH + 1)];
} ipmi_response_message_t;
/* All fields a little endian encoded. However the cputole* and le*tocpu
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment