requester: Fix invalid dbus interface
Change the interface xyz.openbmc_project.MCTP.Control to
xyz.openbmc_project.MCTP to fit the interface exposed by mctpd.service.
Also fixed the incorrect data type from size_t to mctp_eid_t.
Change-Id: Ic0267cef743615c1c0b253638d6c3fd390dae9ee
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
diff --git a/requester/mctp_endpoint_discovery.cpp b/requester/mctp_endpoint_discovery.cpp
index f0da39a..5767314 100644
--- a/requester/mctp_endpoint_discovery.cpp
+++ b/requester/mctp_endpoint_discovery.cpp
@@ -27,7 +27,7 @@
try
{
auto method = bus.new_method_call(
- "xyz.openbmc_project.MCTP.Control", "/xyz/openbmc_project/mctp",
+ "xyz.openbmc_project.MCTP", "/xyz/openbmc_project/mctp",
"org.freedesktop.DBus.ObjectManager", "GetManagedObjects");
auto reply = bus.call(
method,
@@ -50,7 +50,7 @@
if (properties.contains("EID") &&
properties.contains("SupportedMessageTypes"))
{
- auto eid = std::get<size_t>(properties.at("EID"));
+ auto eid = std::get<mctp_eid_t>(properties.at("EID"));
auto types = std::get<std::vector<uint8_t>>(
properties.at("SupportedMessageTypes"));
if (std::find(types.begin(), types.end(), mctpTypePLDM) !=