summaryrefslogtreecommitdiffstats
path: root/transporthandler.h
blob: 171a6364b4fa2ac88439a729de4e44c520c39213 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef __HOST_IPMI_TRANSPORT_HANDLER_H__
#define __HOST_IPMI_TRANSPORT_HANDLER_H__

// IPMI commands for Transport net functions.
enum ipmi_netfn_storage_cmds
{
    // Get capability bits
    IPMI_CMD_SET_LAN = 0x01,
    IPMI_CMD_GET_LAN = 0x02,
};

// Command specific completion codes
enum ipmi_transport_return_codes
{
    IPMI_CC_PARM_NOT_SUPPORTED = 0x80,
};

// Parameters
static const int LAN_PARM_INPROGRESS  = 0;
static const int LAN_PARM_AUTHSUPPORT = 1;
static const int LAN_PARM_AUTHENABLES = 2;
static const int LAN_PARM_IP          = 3;
static const int LAN_PARM_MAC         = 5;
static const int LAN_PARM_SUBNET      = 6;
static const int LAN_PARM_GATEWAY     = 12;

struct channel_config_t {
    std::string new_ipaddr;
    std::string new_netmask;
    std::string new_gateway;
};

#endif
OpenPOWER on IntegriCloud