mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
Use consistent netfn/cmd for getsysinfo command
This commit is contained in:
parent
fdf1176fa0
commit
373e4fe28d
@ -173,10 +173,6 @@ typedef struct _lcd_mode
|
||||
#define MAX_LOM 8
|
||||
|
||||
|
||||
#define APP_NETFN (uint8_t)(0x6)
|
||||
|
||||
|
||||
#define GET_SYSTEM_INFO_CMD (uint8_t)(0x59)
|
||||
#define EMB_NIC_MAC_ADDRESS_11G (uint8_t)(0xDA)
|
||||
#define EMB_NIC_MAC_ADDRESS_9G_10G (uint8_t)(0xCB)
|
||||
|
||||
|
@ -2153,9 +2153,9 @@ static int ipmi_macinfo_10g (struct ipmi_intf* intf, uint8_t NicNum)
|
||||
|
||||
memset(&req, 0, sizeof(req));
|
||||
|
||||
req.msg.netfn = APP_NETFN;
|
||||
req.msg.netfn = IPMI_NETFN_APP;
|
||||
req.msg.lun = 0;
|
||||
req.msg.cmd = GET_SYSTEM_INFO_CMD;
|
||||
req.msg.cmd = IPMI_GET_SYS_INFO;
|
||||
req.msg.data = msg_data;
|
||||
|
||||
|
||||
@ -2261,9 +2261,9 @@ static int ipmi_macinfo_11g (struct ipmi_intf* intf, uint8_t NicNum)
|
||||
|
||||
memset(&req, 0, sizeof(req));
|
||||
|
||||
req.msg.netfn = APP_NETFN;
|
||||
req.msg.netfn = IPMI_NETFN_APP;
|
||||
req.msg.lun = 0;
|
||||
req.msg.cmd = GET_SYSTEM_INFO_CMD;
|
||||
req.msg.cmd = IPMI_GET_SYS_INFO;
|
||||
req.msg.data = msg_data;
|
||||
|
||||
|
||||
@ -2301,9 +2301,9 @@ static int ipmi_macinfo_11g (struct ipmi_intf* intf, uint8_t NicNum)
|
||||
msg_data[input_length++] = offset;
|
||||
msg_data[input_length++] = len;
|
||||
|
||||
req.msg.netfn = APP_NETFN;
|
||||
req.msg.netfn = IPMI_NETFN_APP;
|
||||
req.msg.lun = 0;
|
||||
req.msg.cmd = GET_SYSTEM_INFO_CMD;
|
||||
req.msg.cmd = IPMI_GET_SYS_INFO;
|
||||
req.msg.data = msg_data;
|
||||
req.msg.data_len = input_length;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user