summaryrefslogtreecommitdiffstats
path: root/sol/sol_context.cpp
Commit message (Collapse)AuthorAgeFilesLines
* netipmid: move sol timers to asioVernon Mauery2019-02-011-24/+109
| | | | | | | | | The IPMI SOL console was using sd_event-based timers directly (without any abstraction). This moves to a much higher level abstraction that is very easy to use: asio timers. Change-Id: Id5df76a1918cdfae420e01884d664234810b7abd Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* 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-37/+36
| | | | | | | | 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>
* explicit use of std::vector instead of buffer/BufferVernon Mauery2017-12-051-3/+3
| | | | | | | | | | 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>
* netipmid: Support usesolkeepalive optionTom Joseph2017-08-211-0/+8
| | | | | | | | | | | | | | ipmitool keeps SOL session active by sending Get Device ID command or using SOL packet to keep the session active. We are adding support for keeping the SOL session active by using SOL packet in which case ipmitool would send a SOL payload with no character data and a valid SOL sequence number, the BMC would respond with acknowledgement for that sequence number. Resolves openbmc/openbmc#2101 Change-Id: Ia10e622e761e0de3530e3cc8bc2148a477ffd4ba Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add function to send outbound SOL payloadTom Joseph2017-04-251-0/+5
| | | | | Change-Id: I63213034110c0a550b43e1cbc0115b1312821e3d Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add resendPayload functionTom Joseph2017-04-241-0/+8
| | | | | | | Resolves openbmc/openbmc#856 Change-Id: I957ce889500840c067e97537e825571cfb77e1c4 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Implement API to send SOL payload when console data is availableTom Joseph2017-04-241-0/+33
| | | | | Change-Id: I7869d389b589c59e0c76000da9bfd72b9e67c064 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Implement API to prepare response for inbound SOL payloadTom Joseph2017-04-241-3/+43
| | | | | Change-Id: Ied9811e7e3176c5edf99fa299549ea1d14e9555f Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Implement API to handle inbound SOL PayloadTom Joseph2017-04-241-0/+123
Change-Id: I4bcb98568d84ba384ac11b7777d936c7d5fc124e Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
OpenPOWER on IntegriCloud