summaryrefslogtreecommitdiffstats
path: root/utils.hpp
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2017-11-21 17:46:59 +0530
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-11-28 01:24:43 +0000
commitdd64620da4f560466936752522c1878189cf6c87 (patch)
tree8deb4fecb344bf2a06a404717057335521878503 /utils.hpp
parent585a1e97b0060e15ebc83973f48ec1679576e3ab (diff)
downloadphosphor-host-ipmid-dd64620da4f560466936752522c1878189cf6c87.tar.gz
phosphor-host-ipmid-dd64620da4f560466936752522c1878189cf6c87.zip
Fix the getLan config
We did the filtering during IPAddress parameter to avoid link local address but left it for subnetMask and vlan parameter. With the introduction of zeroconfig IP we have multiIPaddress can exist on the interface. This commit introduces the filtering for subnetmask and vlan parameter also. Resolves openbmc/openbmc#2664 Change-Id: I244bfe8b9d7efbf55fc1b7051489a8a204182906 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'utils.hpp')
-rw-r--r--utils.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils.hpp b/utils.hpp
index 0b2b2db..55978fb 100644
--- a/utils.hpp
+++ b/utils.hpp
@@ -45,19 +45,19 @@ DbusObjectInfo getDbusObject(sdbusplus::bus::bus& bus,
const std::string& subtreePath = ROOT,
const std::string& match = {});
-/** @brief Gets the ipAddres of first dbus IP object of Non-LinkLocalIPAddress
+/** @brief Get the ipObject of first dbus IP object of Non-LinkLocalIPAddress
* type from the given subtree, if not available gets IP object of
* LinkLocalIPAddress type.
* @param[in] bus - DBUS Bus Object.
* @param[in] interface - Dbus interface.
* @param[in] subtreePath - subtree from where the search should start.
* @param[in] match - identifier for object.
- * @return On success returns the ipAddress.
+ * @return On success returns the object having objectpath and servicename.
*/
-std::string getIPAddress(sdbusplus::bus::bus& bus,
- const std::string& interface,
- const std::string& subtreePath,
- const std::string& match);
+DbusObjectInfo getIPObject(sdbusplus::bus::bus& bus,
+ const std::string& interface,
+ const std::string& subtreePath,
+ const std::string& match);
/** @brief Gets the value associated with the given object
* and the interface.
OpenPOWER on IntegriCloud