summaryrefslogtreecommitdiffstats
path: root/command/sol_cmds.cpp
Commit message (Collapse)AuthorAgeFilesLines
* netipmid: use std::shared_ptr instead of weak_ptr/lockVernon Mauery2018-11-061-2/+1
| | | | | | | | | | | | | All of the instances of getSession and startSession were assigning the result to a local shared_ptr via lock on the weak_ptr. It doesn't make sense to demote the shared_ptr (from the sessionsMap) to a weak_ptr via the return, only to promote to a shared_ptr again via lock. Tested-by: running ipmitool -H a.b.c.d -P 0penBmc -I lanplus mc info Sessions start and stop, same as before. Change-Id: Ic10779285891d73ee51115f16ed0000b38d1c52a Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* netipmid: apply clang-format rulesVernon Mauery2018-11-021-54/+51
| | | | | | | | Lots of whitespace change. Let clang-format do its job and keep the code looking nice. Change-Id: Idfcad1a99cab8170d55a06163de8ad3f420b68b7 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* Support SOL parameter channel numberTom Joseph2018-04-041-1/+6
| | | | | | | | | | | | Even though channel number is an optional parameter, the ipmitool shows in the output the channel as 14(0x0e). 0x0e is reserved to indicate in the command, the channel on which the command is received. So the default channel number 1 is returned. Resolves openbmc/openbmc#2959 Change-Id: Ifd069886d4ea8e9ba5c90ca015be39ebdece413d Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* explicit use of std::vector instead of buffer/BufferVernon Mauery2017-12-051-1/+1
| | | | | | | | | | There were several scoped 'using buffer = std::vector<uint8_t>;' in header files. This consolidates the code base to use std::vector<uint8_t> instead of buffer or Buffer. This makes the code easier to read and debug. Change-Id: I918a0f6ca9b8e4b9d331175dccff45cbf4c8379d Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* Add support for Get SOL configuration parameters command.Tom Joseph2017-05-081-0/+86
| | | | | Change-Id: I711cbcd66caea7939d7604551ea4d80a1576244e Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add support for Set SOL Configuration parameters command.Tom Joseph2017-05-081-0/+85
| | | | | Change-Id: I82618bc21c426e37f0110b11aeba9855e588bb6c Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Change the signature of the command handler functions.Tom Joseph2017-04-251-3/+2
| | | | | | | Resolves openbmc/openbmc#857 Change-Id: I0b7ca6665dd89629838a238d77aff67fec1818c7 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add command handler for SOL activating command.Tom Joseph2017-04-251-0/+22
| | | | | Change-Id: I81094330b3fa7f320bd4518cabcfb8fc5b75411c Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add handler function for incoming SOL payload.Tom Joseph2017-04-251-0/+52
Change-Id: I1bdff462ef43281332c6b8c2d61028bc0d9f87b0 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
OpenPOWER on IntegriCloud