CodeConstruct / mctp

MCTP userspace tools
GNU General Public License v2.0
32 stars 19 forks source link

mctpd: fix incorrect response of Get Message Type Support #49

Closed stevenlee7189 closed 3 months ago

stevenlee7189 commented 3 months ago

The response from the "Get Message Type Support" request doesn't include the list of message type numbers; it only returns the message type count.

Request: 00 81 05

Response: 00 00 05 00 01

To fix this issue, adjust the response length to include the message type list. The corrected response should be:

00 00 05 00 01 00

jk-ozlabs commented 3 months ago

Good catch, thanks!

(I have a todo to be able to register new message types too)