Adriana Kobylak | 5d6481f | 2015-10-29 21:44:55 -0500 | [diff] [blame] | 1 | #ifndef __HOST_IPMI_TRANSPORT_HANDLER_H__ |
| 2 | #define __HOST_IPMI_TRANSPORT_HANDLER_H__ |
| 3 | |
| 4 | // IPMI commands for Transport net functions. |
| 5 | enum 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 |
| 13 | enum ipmi_transport_return_codes |
| 14 | { |
| 15 | IPMI_CC_PARM_NOT_SUPPORTED = 0x80, |
| 16 | }; |
| 17 | |
Adriana Kobylak | e08fbc6 | 2016-02-09 16:17:23 -0600 | [diff] [blame] | 18 | // Parameters |
| 19 | static const int LAN_PARM_INPROGRESS = 0; |
| 20 | static const int LAN_PARM_AUTHSUPPORT = 1; |
| 21 | static const int LAN_PARM_AUTHENABLES = 2; |
| 22 | static const int LAN_PARM_IP = 3; |
| 23 | static const int LAN_PARM_MAC = 5; |
| 24 | static const int LAN_PARM_SUBNET = 6; |
| 25 | static const int LAN_PARM_GATEWAY = 12; |
| 26 | |
Nan Li | 3d0df91 | 2016-10-18 19:51:41 +0800 | [diff] [blame] | 27 | struct channel_config_t { |
| 28 | std::string new_ipaddr; |
| 29 | std::string new_netmask; |
| 30 | std::string new_gateway; |
| 31 | }; |
| 32 | |
Adriana Kobylak | 5d6481f | 2015-10-29 21:44:55 -0500 | [diff] [blame] | 33 | #endif |