summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRajashekar Gade Reddy <raja.sekhar.reddy.gade@linux.intel.com>2019-07-25 15:12:17 +0000
committerVernon Mauery <vernon.mauery@linux.intel.com>2019-10-25 15:39:20 +0000
commitf71444da816b23cb27772662a544d8bc1c465273 (patch)
tree9fa296897cef2eb8797d9b7f6352e312a8e140f3 /include
parent69daefa04a4f7d5ab21480137991b88c6b34ee1d (diff)
downloadphosphor-host-ipmid-f71444da816b23cb27772662a544d8bc1c465273.tar.gz
phosphor-host-ipmid-f71444da816b23cb27772662a544d8bc1c465273.zip
Implemented get session info cmd in host interface
This command can get info of any session Tested all positive and negative test cases Tested: Get active session info by valid session handle ipmitool raw 0x6 0x3d <sesssion index = search session by handle> <valid session handle> Response : successfully gets the session info as per IPMI spec Get active session info by valid session id ipmitool raw 0x6 0x3d <sesssion index = search session by id> <valid session id> Response : successfully gets the session info as per IPMI spec Get inactive session info by valid session handle ipmitool raw 0x6 0x3d <sesssion index = search session by handle> <valid session handle> Response : successfully gets the session info as per IPMI spec Get inactive session info by valid session id ipmitool raw 0x6 0x3d <sesssion index = search session by id> <valid session id> Response : successfully gets the session info as per IPMI spec Get session info by invalid session handle ipmitool raw 0x6 0x3d <sesssion index = search session by handle> <invalid session handle> Response : 0x88 // Inavlid Session Handle Get session info by invalid session id ipmitool raw 0x6 0x3d <sesssion index = search session by id> <invalid session id> Response : 0x87 // Inavlid Session Id Signed-off-by: Rajashekar Gade Reddy <raja.sekhar.reddy.gade@linux.intel.com> Change-Id: Ib36a9fe5eac58d15011cc9379ceed480ba0be96d
Diffstat (limited to 'include')
-rw-r--r--include/ipmid/sessiondef.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ipmid/sessiondef.hpp b/include/ipmid/sessiondef.hpp
index 48ee4c6..7802fb9 100644
--- a/include/ipmid/sessiondef.hpp
+++ b/include/ipmid/sessiondef.hpp
@@ -32,7 +32,8 @@ static constexpr uint8_t defaultSessionHandle = 0xFF;
static constexpr uint8_t maxNetworkInstanceSupported = 4;
static constexpr uint8_t ccInvalidSessionId = 0x87;
static constexpr uint8_t ccInvalidSessionHandle = 0x88;
-
+static constexpr uint8_t searchSessionByHandle = 0xFE;
+static constexpr uint8_t searchSessionById = 0xFF;
// MSB BIT 7 BIT 6 assigned for netipmid instance in session handle.
static constexpr uint8_t multiIntfaceSessionHandleMask = 0x3F;
OpenPOWER on IntegriCloud