summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Joseph <tomjoseph@in.ibm.com>2017-03-31 10:50:22 +0530
committerTom Joseph <tomjoseph@in.ibm.com>2017-04-25 12:12:02 +0530
commit703adbfacedd34dd9f98a315b0851569fed6a2a3 (patch)
treeb7e8d955f9b54ce41016a87dc2ddd5477e4ca771
parent31133bcdb56651f62c9ca4287040bd3b167c1e15 (diff)
downloadphosphor-net-ipmid-703adbfacedd34dd9f98a315b0851569fed6a2a3.tar.gz
phosphor-net-ipmid-703adbfacedd34dd9f98a315b0851569fed6a2a3.zip
No response is send via the packet handler if payload is SOL.
There are 2 scenarios for handling inbound SOL payload, an ack only packet or packet with console data. In the case of ack only packet no response needs to send. There is also a case where host data is send in an unsolicited way to the remote console. So a unified interface sendPayload is used to send SOL responses. Since the evaluation of the scenario is delegated to another function, the command handler would not send any response data.The delegated function would evaluate whether a response needs to be sent and send the appropriate response using the sendPayload. Change-Id: Ic32f172a398ab85a5ee87b17a0a740e83482511f Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
-rw-r--r--message_handler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/message_handler.cpp b/message_handler.cpp
index a68f36b..820895d 100644
--- a/message_handler.cpp
+++ b/message_handler.cpp
@@ -132,6 +132,9 @@ std::unique_ptr<Message> Handler::executeCommand(Message& inMessage)
case PayloadType::RAKP3:
outMessage = createResponse<PayloadType::RAKP4>(output, inMessage);
break;
+ case PayloadType::SOL:
+ return outMessage;
+ break;
default:
break;
}
OpenPOWER on IntegriCloud