blob: f1fd4104482385cb00234cbd74212d74e935bf30 [file] [log] [blame]
Ratan Guptab8e99552017-07-27 07:07:48 +05301#pragma once
2
3#include <string>
Adriana Kobylak5d6481f2015-10-29 21:44:55 -05004
5// IPMI commands for Transport net functions.
6enum ipmi_netfn_storage_cmds
7{
8 // Get capability bits
9 IPMI_CMD_SET_LAN = 0x01,
10 IPMI_CMD_GET_LAN = 0x02,
11};
12
13// Command specific completion codes
14enum ipmi_transport_return_codes
15{
16 IPMI_CC_PARM_NOT_SUPPORTED = 0x80,
17};
18
Adriana Kobylake08fbc62016-02-09 16:17:23 -060019// Parameters
20static const int LAN_PARM_INPROGRESS = 0;
21static const int LAN_PARM_AUTHSUPPORT = 1;
22static const int LAN_PARM_AUTHENABLES = 2;
23static const int LAN_PARM_IP = 3;
24static const int LAN_PARM_MAC = 5;
25static const int LAN_PARM_SUBNET = 6;
26static const int LAN_PARM_GATEWAY = 12;
27
Ratan Guptab8e99552017-07-27 07:07:48 +053028struct ChannelConfig_t
29{
30 std::string ipaddr;
31 std::string netmask;
32 std::string gateway;
33 std::string macAddress;
34 void clear()
35 {
36 ipaddr.clear();
37 netmask.clear();
38 gateway.clear();
39 macAddress.clear();
40 }
Nan Li3d0df912016-10-18 19:51:41 +080041};