freeipmi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Freeipmi-devel] [bug #13076] ipmi_lan_open_session error -1 with libfre


From: anonymous
Subject: [Freeipmi-devel] [bug #13076] ipmi_lan_open_session error -1 with libfreeipmi-0.1.3
Date: Fri, 13 May 2005 15:58:50 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13076>

                 Summary: ipmi_lan_open_session error -1 with
libfreeipmi-0.1.3
                 Project: GNU FreeIPMI
            Submitted by: None
            Submitted on: Fri 05/13/2005 at 11:58
                Category: libfreeipmi
                Severity: 3 - Normal
              Item Group: Improper Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open

    _______________________________________________________

Details:

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);







    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13076>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]