summaryrefslogtreecommitdiffstats
path: root/ipmid.cpp
diff options
context:
space:
mode:
authorssekar <suryakanth.sekar@intel.com>2018-08-16 17:31:43 +0530
committerRichard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>2018-11-20 09:59:54 +0530
commitb849110d32da5ca61f165abf553eac5b383d4f69 (patch)
treea16db86e2f7c2f55d120ca083b2a39ae90bbaef8 /ipmid.cpp
parent18d772634afe5656ea10263466afe770bfb339b6 (diff)
downloadphosphor-host-ipmid-b849110d32da5ca61f165abf553eac5b383d4f69.tar.gz
phosphor-host-ipmid-b849110d32da5ca61f165abf553eac5b383d4f69.zip
Add kcs selfchannel support & define for LAN too
Define sudo API's for returning channel index for self channel. At moment, This API returns KCS for host-ipmi Change-Id: Icefd5d949e94d4399adaffdad102ccb18c1b7cdc Signed-off-by: ssekar <suryakanth.sekar@intel.com> Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
Diffstat (limited to 'ipmid.cpp')
-rw-r--r--ipmid.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipmid.cpp b/ipmid.cpp
index 1e7fd0d..238c0e5 100644
--- a/ipmid.cpp
+++ b/ipmid.cpp
@@ -576,6 +576,11 @@ sd_bus_slot* ipmid_get_sd_bus_slot(void)
return ipmid_slot;
}
+EInterfaceIndex getInterfaceIndex(void)
+{
+ return interfaceKCS;
+}
+
// Calls host command manager to do the right thing for the command
void ipmid_send_cmd_to_host(CommandHandler&& cmd)
{
OpenPOWER on IntegriCloud