OpenIPMI is correct here, but the spec does not explain this very well. A LUN of 0 means "deliver the message to the BMC". A LUN of 2 means "deliver the message to the software connected to the BMC".
The LUN in question on line 142 is the requester LUN on a message routed to IPMB, meaning that this is where it wants the remote BMC on the IPMB to return the response. Thus, it must be 2 to go back to the LAN. If it was 0, the message to be delivered to the BMC directly and not go out the LAN. The LUN on line 127 is the destination for the send message, which should be the BMC since it is the one that sends the message. The LUN on line 130 is meaningless, BTW. -corey Jim Sievert wrote: > > OpenIPMI-2.0.11, Function ipmi_format_msg, in file ipmi_payload.c, > line 142 reads as follows: > > tmsg[pos++] = (seq << 2) | 2; /* add 2 as the SMS LUN */ > > Consider a SendMessage request being issued from a LAN channel. Given > such a request, the hard-coded LUN of 2 is incorrect. > > It’s interesting that line 142 is coded using LUN 2 while line 127 is > coded using LUN 0: > > tmsg[pos++] = (IPMI_APP_NETFN << 2) | 0; > > It would seem that determining the correct LUN would be based on > channel from which the request originates. It’s not clear to me that > such information is available. > > Any suggestions on a fix would be appreciated. > > Thanks. > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > Openipmi-developer mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/openipmi-developer > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Openipmi-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/openipmi-developer
