summaryrefslogtreecommitdiff
path: root/include/ipmitool/ipmi.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ipmitool/ipmi.h')
-rw-r--r--include/ipmitool/ipmi.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/include/ipmitool/ipmi.h b/include/ipmitool/ipmi.h
index e978bfc..7555596 100644
--- a/include/ipmitool/ipmi.h
+++ b/include/ipmitool/ipmi.h
@@ -30,8 +30,7 @@
* EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
*/
-#ifndef IPMI_H
-#define IPMI_H
+#pragma once
#include <stdlib.h>
#include <stdio.h>
@@ -46,6 +45,7 @@
#endif
#define IPMI_BUF_SIZE 1024
+#define IPMI_MAX_MD_SIZE 0x20
#if HAVE_PRAGMA_PACK
#define ATTRIBUTE_PACKING
@@ -211,13 +211,13 @@ struct ipmi_rs {
uint32_t console_id;
uint8_t bmc_rand[16]; /* Random number generated by the BMC */
uint8_t bmc_guid[16];
- uint8_t key_exchange_auth_code[20];
+ uint8_t key_exchange_auth_code[IPMI_MAX_MD_SIZE];
} rakp2_message;
struct {
uint8_t message_tag;
uint8_t rakp_return_code;
uint32_t console_id;
- uint8_t integrity_check_value[20];
+ uint8_t integrity_check_value[IPMI_MAX_MD_SIZE];
} rakp4_message;
struct {
uint8_t packet_sequence_number;
@@ -258,6 +258,8 @@ struct ipmi_rs {
typedef enum IPMI_OEM {
IPMI_OEM_UNKNOWN = 0,
+ IPMI_OEM_DEBUG = 0xFFFFFE, /* Hoping IANA won't hit this soon */
+ IPMI_OEM_RESERVED = 0x0FFFFF, /* As per IPMI 2.0 specification */
/* 2 for [IBM] */
IPMI_OEM_IBM_2 = 2,
IPMI_OEM_HP = 11,
@@ -280,7 +282,7 @@ typedef enum IPMI_OEM {
IPMI_OEM_MAGNUM = 5593,
IPMI_OEM_TYAN = 6653,
IPMI_OEM_QUANTA = 7244,
- IPMI_OEM_NEWISYS = 9237,
+ IPMI_OEM_VIKING = 9237,
IPMI_OEM_ADVANTECH = 10297,
IPMI_OEM_FUJITSU_SIEMENS = 10368,
IPMI_OEM_AVOCENT = 10418,
@@ -298,9 +300,9 @@ typedef enum IPMI_OEM {
/* 24339 for [ADLINK TECHNOLOGY INC.] */
IPMI_OEM_ADLINK_24339 = 24339,
IPMI_OEM_NOKIA_SOLUTIONS_AND_NETWORKS = 28458,
- IPMI_OEM_SUPERMICRO_47488 = 47488
+ IPMI_OEM_VITA = 33196,
+ IPMI_OEM_SUPERMICRO_47488 = 47488,
+ IPMI_OEM_YADRO = 49769,
} IPMI_OEM;
extern const struct valstr completion_code_vals[];
-
-#endif /* IPMI_H */