blob: 171a6364b4fa2ac88439a729de4e44c520c39213 [file] [log] [blame]
Adriana Kobylak5d6481f2015-10-29 21:44:55 -05001#ifndef __HOST_IPMI_TRANSPORT_HANDLER_H__
2#define __HOST_IPMI_TRANSPORT_HANDLER_H__
3
4// IPMI commands for Transport net functions.
5enum ipmi_netfn_storage_cmds
6{
7 // Get capability bits
8 IPMI_CMD_SET_LAN = 0x01,
9 IPMI_CMD_GET_LAN = 0x02,
10};
11
12// Command specific completion codes
13enum ipmi_transport_return_codes
14{
15 IPMI_CC_PARM_NOT_SUPPORTED = 0x80,
16};
17
Adriana Kobylake08fbc62016-02-09 16:17:23 -060018// Parameters
19static const int LAN_PARM_INPROGRESS = 0;
20static const int LAN_PARM_AUTHSUPPORT = 1;
21static const int LAN_PARM_AUTHENABLES = 2;
22static const int LAN_PARM_IP = 3;
23static const int LAN_PARM_MAC = 5;
24static const int LAN_PARM_SUBNET = 6;
25static const int LAN_PARM_GATEWAY = 12;
26
Nan Li3d0df912016-10-18 19:51:41 +080027struct channel_config_t {
28 std::string new_ipaddr;
29 std::string new_netmask;
30 std::string new_gateway;
31};
32
Adriana Kobylak5d6481f2015-10-29 21:44:55 -050033#endif