summaryrefslogtreecommitdiffstats
path: root/transporthandler.hpp
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2017-09-01 23:06:25 +0530
committerPatrick Williams <patrick@stwcx.xyz>2017-09-08 17:30:39 +0000
commitcc6cdbf1d4111b0f29cc3dd37c61317a7abff58f (patch)
treeefb2948f0ab6738ba8be78f9d8ece193210ce29f /transporthandler.hpp
parent558184ea80cd34bb62052e885b64ab38a3edf950 (diff)
downloadphosphor-host-ipmid-cc6cdbf1d4111b0f29cc3dd37c61317a7abff58f.tar.gz
phosphor-host-ipmid-cc6cdbf1d4111b0f29cc3dd37c61317a7abff58f.zip
GetLan: Support for get/set of ipsrc parameter
Change-Id: Id9c52bb0963c5924f80f9e273b53ed5556b16a2c Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'transporthandler.hpp')
-rw-r--r--transporthandler.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/transporthandler.hpp b/transporthandler.hpp
index 24ee8be..4894190 100644
--- a/transporthandler.hpp
+++ b/transporthandler.hpp
@@ -21,6 +21,7 @@ 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_IPSRC = 4;
static const int LAN_PARM_MAC = 5;
static const int LAN_PARM_SUBNET = 6;
static const int LAN_PARM_GATEWAY = 12;
@@ -29,6 +30,7 @@ static const int LAN_PARM_VLAN = 20;
struct ChannelConfig_t
{
std::string ipaddr;
+ ipmi::network::IPOrigin ipsrc = ipmi::network::IPOrigin::UNSPECIFIED;
std::string netmask;
std::string gateway;
std::string macAddress;
@@ -44,5 +46,6 @@ struct ChannelConfig_t
gateway.clear();
macAddress.clear();
vlanID = ipmi::network::VLAN_ID_MASK;
+ ipsrc = ipmi::network::IPOrigin::UNSPECIFIED;
}
};
OpenPOWER on IntegriCloud