bugGNU FreeIPMI - Bugs: bug #13076, ipmi_lan_open_session error -1...

 
 

bug #13076: ipmi_lan_open_session error -1 with libfreeipmi-0.1.3

Submitter:  None
Submitted:  Fri 13 May 2005 03:58:49 PM UTC
   
 
Category:  libfreeipmi Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Improper Behaviour
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 13 May 2005 05:19:17 PM UTC, comment #1: 

patch was applied post 0.1.3 :-(

Its already in 0.2.0

Al

Albert Chu <chu11>
Group administrator
Fri 13 May 2005 03:58:49 PM UTC, original submission:  

This is an old problem that I solved with 0.1.0, but it resurfaced again with 0.1.3.

ipmi_lan_open_session always returns -1 on my i686 systems.

Below is the patch I applied to resolve it again.

--- ipmi-lan-interface.c.orig 2005-05-13 11:09:07.000000000 -0400
+++ ipmi-lan-interface.c 2005-05-13 11:12:30.000000000 -0400
@@ -108,7 +108,7 @@
 {
   if ((net_fn > IPMI_NET_FN_TRANSPORT_RS)
       || (rs_lun > IPMI_BMC_IPMB_LUN_OEM_LUN2)
-      || (rq_seq > IPMI_LAN_SEQ_NUM_MAX)
+      /* || (rq_seq > IPMI_LAN_SEQ_NUM_MAX)   ARCress /
       || (obj_msg == NULL))
     {
       errno = EINVAL;
@@ -690,6 +690,7 @@
     memset (pkt, 0, _pkt_len);
     ERR (pkt);
    
+    fromlen = sizeof(struct sockaddr);  /*bug fix from 0.1.0, ARCress */
     pkt_len = ipmi_lan_recvfrom (sockfd, pkt, _pkt_len, 0, (struct sockaddr *)&from,
  &fromlen);
     ERR (pkt_len != -1);

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2005-05-13 chu11 Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-3230.
Corresponding source code