Added current session Id to options map.

Added current session Id to options map, it is passed to
ipmid-host. This will enable certain commands to know
the current sessionid.

Tested:

Current session Id is used in Get session info command to get current
session info and it is working fine.

ipmitool -I lanplus -U <user> -P <password> -H <lan1_ip> raw 6 0x3d <Zero>
Response : gives currents session info

ipmitool -I lanplus -U <user> -P <password> -H <lan2_ip> raw 6 0x3d <Zero>
Response : gives currents session inf

//host interface
ipmitool raw 6 0x3d 0
Response: 0xCC // invalid field in the request

//This command shows info of all sessions, which includes current
session info as well.

ipmitool -I lanplus -U <user> -P <password> -H <lan1_ip> session info all
session handle                : 129
slot count                    : 45
active sessions               : 1
user id                       : 1
privilege level               : ADMINISTRATOR
session type                  : IPMIv1.5
channel number                : 0x03
console ip                    : 0.0.0.0
console mac                   : 00:00:00:00:00:00
console port                  : 52670

session handle                : 0
slot count                    : 45
active sessions               : 1

//This command shows info of all sessions, which includes current
session info as well.
ipmitool -I lanplus -U <user> -P <password> -H <lan2_ip> session info all
session handle                : 0
slot count                    : 45
active sessions               : 1

session handle                : 1
slot count                    : 45
active sessions               : 1
user id                       : 1
privilege level               : ADMINISTRATOR
session type                  : IPMIv1.5
channel number                : 0x01
console ip                    : 0.0.0.0
console mac                   : 00:00:00:00:00:00
console port                  : 57622

//host interface
ipmitool session info all
session handle                : 0
slot count                    : 45
active sessions               : 0

session handle                : 0
slot count                    : 45
active sessions               : 0

tested other postive and negative test cases for get session info
command in Lan1, Lan2 and host interfaces. All are working fine

Signed-off-by: Rajashekar Gade Reddy <raja.sekhar.reddy.gade@linux.intel.com>
Change-Id: I6b511331654c85436379fc4d833a7d642aabf757
diff --git a/command_table.cpp b/command_table.cpp
index 1ad2175..b29b32a 100644
--- a/command_table.cpp
+++ b/command_table.cpp
@@ -68,6 +68,8 @@
                            ipmi::ipmiUserGetUserId(session->userName)))},
             {"privilege",
              ipmi::Value(static_cast<int>(session->currentPrivilege()))},
+            {"currentSessionId",
+             ipmi::Value(static_cast<uint32_t>(session->getBMCSessionID()))},
         };
         bus->async_method_call(
             [handler, this](const boost::system::error_code& ec,