diff options
author | Matt Spinler <spinler@us.ibm.com> | 2019-12-12 13:30:14 -0600 |
---|---|---|
committer | Matt Spinler <spinler@us.ibm.com> | 2020-01-27 08:06:26 -0600 |
commit | a19b6234410703c3b45d30636978e35f07f18394 (patch) | |
tree | b11825e61e576142293f2a01778ec8a485936818 /logging_test.cpp | |
parent | 41293cb851e00807996950f34cb1ec4e410d6931 (diff) | |
download | phosphor-logging-a19b6234410703c3b45d30636978e35f07f18394.tar.gz phosphor-logging-a19b6234410703c3b45d30636978e35f07f18394.zip |
PEL: Receive a 'bad PEL' indication from host
If the code somehow sent the host a malformed PEL, it will
respond with the 'Ack PEL' PLDM command with a special value
that indicates this, and the PLDM daemon will relay it to this
daemon.
In this case, change the host transmission state to 'bad' so
it doesn't get sent again. This should never happen as the
Repository class already validates PELs and removes bad ones,
though maybe the host and Repository have different ideas
about what constitutes a malformed PEL.
In the future, if event logging support is added to the PEL
code running inside the logging daemon, it may be a good
idea to create a new PEL for this case.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Id6f9fd37764bf5b5d09b4277a1e36b1f26b3e9a5
Diffstat (limited to 'logging_test.cpp')
0 files changed, 0 insertions, 0 deletions