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/



_______________________________________________
Freeipmi-devel mailing list
Freeipmi-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/freeipmi-devel

Reply via email to