diff options
author | Johnathan Mantey <johnathanx.mantey@intel.com> | 2019-01-30 15:51:04 -0800 |
---|---|---|
committer | Tom Joseph <tomjoseph@in.ibm.com> | 2019-02-05 08:44:58 +0000 |
commit | 88416834d58471cb4c29551ae0b8f5081cd3ada7 (patch) | |
tree | 39659ce65f205ed188f94671bfbbf0643c49a704 | |
parent | 74a2102e1fcf15097878449cd2989b5facd9b956 (diff) | |
download | phosphor-host-ipmid-88416834d58471cb4c29551ae0b8f5081cd3ada7.tar.gz phosphor-host-ipmid-88416834d58471cb4c29551ae0b8f5081cd3ada7.zip |
Acquire the NIC netmask
The netmask value was not being pulled from the correct DBus path.
Change-Id: I4b163d5269737f7a9556d7b5ceafa25a5034d327
Signed-off-by: Johnathan Mantey <johnathanx.mantey@intel.com>
-rw-r--r-- | transporthandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/transporthandler.cpp b/transporthandler.cpp index 72beebc..14a9980 100644 --- a/transporthandler.cpp +++ b/transporthandler.cpp @@ -196,9 +196,9 @@ ipmi_ret_t getNetworkData(uint8_t lan_param, uint8_t* data, int channel) { try { - auto ipObjectInfo = ipmi::getIPObject( - bus, ipmi::network::IP_INTERFACE, - ipmi::network::ROOT, ipmi::network::IP_TYPE); + auto ipObjectInfo = + ipmi::getIPObject(bus, ipmi::network::IP_INTERFACE, + ipmi::network::ROOT, ethIP); auto properties = ipmi::getAllDbusProperties( bus, ipObjectInfo.second, ipObjectInfo.first, |