From eb37fb41e007bbb665ae87edb6b893b21a4257fa Mon Sep 17 00:00:00 2001 From: Raptor Engineering Development Team Date: Fri, 23 Jul 2021 01:01:30 -0500 Subject: [PATCH] Fix IPMI request / response sizes --- kestrel/src/ipmi_bt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kestrel/src/ipmi_bt.h b/kestrel/src/ipmi_bt.h index 6a7aee7..91ff9ff 100644 --- a/kestrel/src/ipmi_bt.h +++ b/kestrel/src/ipmi_bt.h @@ -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 -- 2.30.2