ipmitool/test

Responses to 'raw' on lanplus interface greater than 255 bytes are truncated

AlexanderAmelkin opened this issue · 6 comments

Reported by: Will Bryan
Original Ticket: ipmitool/bugs/379

When using a 'raw' command on the lanplus interface (may affect more than this) and the response is greater than 255, the response wraps and only displays modulo 255 bytes.

Please, can you provide more information? Some (verbose) output could help as well, I suppose.

Thank you,
Z.

Original comment by: Zdenek Styblik

  • Group: version-1.8.16 --> version-cvs

Original comment by: Zdenek Styblik

Sorry. In this case the issue was actually within the BMC. However, along the same vein, if the response is > 1024 bytes, you get this error:

-bash-4.1$ ipmitool -H -I lanplus -U -P raw 0x3a 0x0d 0x40 0x03 0x01 0x00 0x49 0x4D 0x50 0x00
ERROR: Received message with invalid authcode!
ipmitool: lanplus.c:671: ipmi_lan_poll_recv: Assertion `0' failed.
Aborted

I know that this is an issue with the response length, because I modified the maximum response size in the tool to something larger and it worked just fine. Is there a reason the response size is so limited?

Original comment by: Will Bryan

  • Group: version-cvs --> version-1.8.17

Original comment by: Zdenek Styblik

Is there a reason the response size is so limited?

If there is, I'm fairly sure there is nobody around who knows why. I gave a glance at the code, but I don't see that assert.
Anyway, please, create patch and I'll give it one more thought then. If I come up empty, I'll be happy to accept it.

Thank you,
Z.

Original comment by: Zdenek Styblik

  • Group: version-1.8.17 --> version-cvs

Original comment by: Zdenek Styblik