ADLINK IMB-S90 User Manual
Page 61

IMB-S90 IPMI User’s Manual
61
@brief checks if error type is IPMI_ERROR_FLAG
*/
#define IS_IPMI_ERROR(x)(((x)>>8) == IPMI_ERROR_FLAG )
/**
@def
IS_RMCP_RAKP_ERROR(x)
@brief checks if error type is IPMI_ERROR_FLAG
*/
#define IS_RMCP_RAKP_ERROR(x(((x)>>8) == RMCP_RAKP_ERROR_FLAG )
/**
@def
GET_ERROR_CODE(x)
@brief returns the actual 1 byte error code.
*/
#define
GET_ERROR_CODE(x)( ((uint8)x & 0xff) )
/**************************/
/* Error Codes */
#define
LIBIPMI_E_SUCCESS
0x0000
#define
LIBIPMI_STATUS_SUCCESS
0x00
/* Medium related errors */
#define
LIBIPMI_MEDIUM_E_CONNECT_FAILURE
0x01
#define
LIBIPMI_MEDIUM_E_SEND_DATA_FAILURE
0x02
#define
LIBIPMI_MEDIUM_E_RECV_DATA_FAILURE
0x03
#define
LIBIPMI_MEDIUM_E_WSA_INIT_FAILURE
0x04
#define
LIBIPMI_MEDIUM_E_INVALID_SOCKET
0x05
#define
LIBIPMI_MEDIUM_E_TIMED_OUT
0x06
#define
LIBIPMI_MEDIUM_E_UNSUPPORTED
0x07
#define
LIBIPMI_MEDIUM_E_OS_UNSUPPORTED
0x08
#define
LIBIPMI_MEDIUM_E_INVALID_PARAMS
0x09
#define
LIBIPMI_MEDIUM_E_INVALID_DATA
0x0A
#define
LIBIPMI_MEDIUM_E_TIMED_OUT_ON_SEND
0x0B
/* Session related errors */
#define
LIBIPMI_SESSION_E_EXPIRED
0x10
#define
LIBIPMI_SESSION_E_RECONNECT_FAILURE 0x11
#define
LIBIPMI_SESSION_E_HANDSHAKE_NOT_RECVD
0x12
/* RMCP reated errors*/
#define
LIBIPMI_RMCP_E_INVALID_PACKET
0x20
#define
LIBIPMI_RMCP_E_INVALID_PONG
0x21
#define
LIBIPMI_BMC_E_IPMI2_NOT_SUPPORTED
0x30
/* AES Encryption Errors */
#define
LIBIPMI_AES_CBC_E_NO_ENOUGH_MEMORY
0x40
#define
LIBIPMI_ENCRYPTION_UNSUPPORTED 0x41
/* Validation Errors */
#define
LIBIPMI_E_INVALID_AUTHTYPE
0x50
#define
LIBIPMI_E_INVALID_SESSIONID 0x51
#define
LIBIPMI_E_PADBYTES_MISMATCH
0x52
#define
LIBIPMI_E_AUTHCODE_MISMATCH
0x53
#define
LIBIPMI_E_CHKSUM_MISMATCH
0x54
#define LIBIPMI_E_AUTHTYPE_NOT_SUPPORTED
0x55
/* Session Establishment Errors */
#define
LIBIPMI_E_INVALID_OPEN_SESSION_RESPONSE
0x60
#define LIBIPMI_E_INVALID_RAKP_MESSAGE_2
0x61
#define
LIBIPMI_E_AUTH_ALG_UNSUPPORTED 0x62