ipmitool / test

0 stars 0 forks source link

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

Open AlexanderAmelkin opened 9 years ago

AlexanderAmelkin commented 9 years ago

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.

AlexanderAmelkin commented 8 years ago

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

Thank you, Z.

Original comment by: Zdenek Styblik

AlexanderAmelkin commented 8 years ago

Original comment by: Zdenek Styblik

AlexanderAmelkin commented 8 years ago

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

AlexanderAmelkin commented 8 years ago

Original comment by: Zdenek Styblik

AlexanderAmelkin commented 8 years ago

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

AlexanderAmelkin commented 8 years ago

Original comment by: Zdenek Styblik