summaryrefslogtreecommitdiffstats
path: root/include/ipmid
diff options
context:
space:
mode:
authorVernon Mauery <vernon.mauery@linux.intel.com>2019-04-09 16:00:46 -0700
committerVernon Mauery <vernon.mauery@linux.intel.com>2019-04-29 16:57:07 +0000
commitd6a2da07d5c90e21aaf7a1612314180db73bdb6b (patch)
treebcb8af322e745eb89489e3425fde52237ac65fbb /include/ipmid
parent461f464527d1f9e57920cfcfbaed9e918f830741 (diff)
downloadphosphor-host-ipmid-d6a2da07d5c90e21aaf7a1612314180db73bdb6b.tar.gz
phosphor-host-ipmid-d6a2da07d5c90e21aaf7a1612314180db73bdb6b.zip
add rqSA ipmb request source address
Platform Event Message Command requires that if the message comes in over IPMB, the generator ID is the rqSA of the message. IPMB bridge is now responsible for passing this in via the options map so it can be passed in the context to the command. Change-Id: I52b7c9ef23896a4efcceeebf12559bbdf897d1c2 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
Diffstat (limited to 'include/ipmid')
-rw-r--r--include/ipmid/message.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/ipmid/message.hpp b/include/ipmid/message.hpp
index 030618f..7f1ad7e 100644
--- a/include/ipmid/message.hpp
+++ b/include/ipmid/message.hpp
@@ -36,9 +36,10 @@ struct Context
Context() = default;
Context(NetFn netFn, Cmd cmd, int channel, int userId, Privilege priv,
- boost::asio::yield_context* yield = nullptr) :
+ int rqSA = 0, boost::asio::yield_context* yield = nullptr) :
netFn(netFn),
- cmd(cmd), channel(channel), userId(userId), priv(priv), yield(yield)
+ cmd(cmd), channel(channel), userId(userId), priv(priv), rqSA(rqSA),
+ yield(yield)
{
}
@@ -48,6 +49,9 @@ struct Context
int channel = 0;
int userId = 0;
Privilege priv = Privilege::None;
+ // srcAddr is only set on IPMB requests because
+ // Platform Event Message needs it to determine the incoming format
+ int rqSA = 0;
// if non-null, use this to do blocking asynchronous asio calls
boost::asio::yield_context* yield = nullptr;
};
OpenPOWER on IntegriCloud