From: Jean-Michel A. <au...@us...> - 2005-11-23 21:45:46
|
Update of /cvsroot/ipmitool/ipmitool/src/plugins/lanplus In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv804/ipmitool/src/plugins/lanplus Modified Files: lanplus.c Log Message: * Fix req_seq issue with RMCP+ Index: lanplus.c =================================================================== RCS file: /cvsroot/ipmitool/ipmitool/src/plugins/lanplus/lanplus.c,v retrieving revision 1.41 retrieving revision 1.42 diff -C2 -d -r1.41 -r1.42 *** lanplus.c 16 Jun 2005 16:53:01 -0000 1.41 --- lanplus.c 23 Nov 2005 21:45:37 -0000 1.42 *************** *** 288,292 **** static struct ipmi_rq_entry * ! ipmi_req_add_entry(struct ipmi_intf * intf, struct ipmi_rq * req) { struct ipmi_rq_entry * e; --- 288,292 ---- static struct ipmi_rq_entry * ! ipmi_req_add_entry(struct ipmi_intf * intf, struct ipmi_rq * req, uint8_t req_seq) { struct ipmi_rq_entry * e; *************** *** 302,305 **** --- 302,306 ---- e->intf = intf; + e->rq_seq = req_seq; if (ipmi_req_entries == NULL) *************** *** 1699,1706 **** */ static uint8_t curr_seq = 0; if (curr_seq >= 64) curr_seq = 0; ! entry = ipmi_req_add_entry(intf, req); if (entry == NULL) return NULL; --- 1700,1710 ---- */ static uint8_t curr_seq = 0; + + curr_seq += 1; + if (curr_seq >= 64) curr_seq = 0; ! entry = ipmi_req_add_entry(intf, req, curr_seq); if (entry == NULL) return NULL; *************** *** 1767,1771 **** struct ipmi_rq_entry * entry; ! entry = ipmi_req_add_entry(intf, req); if (entry == NULL) return NULL; --- 1771,1775 ---- struct ipmi_rq_entry * entry; ! entry = ipmi_req_add_entry(intf, req, 0); if (entry == NULL) return NULL; |