Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mctpd: check IIDs and opcodes in control protocol responses
Currently we ignore the IID and opcode fields in control protocol response messages. This means we may get a delayed response from an endpoint, it may be interpreted incorrectly as a response to the next message. Instead, allocate new IIDs for each message, then check the IIDs in responses. We do this through a new common response validation function, mctp_ctrl_validate_response. This requires some additional string building for error messages. Signed-off-by: Jeremy Kerr <[email protected]>
- Loading branch information