mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-11 19:17:22 +00:00
fix sequence number incrementing on retry
This commit is contained in:
parent
eab4dfe679
commit
f61c3acbaf
@ -751,13 +751,13 @@ ipmi_lan_send_cmd(struct ipmi_intf * intf, struct ipmi_rq * req)
|
|||||||
intf->opened, intf->open);
|
intf->opened, intf->open);
|
||||||
}
|
}
|
||||||
|
|
||||||
entry = ipmi_lan_build_cmd(intf, req);
|
|
||||||
if (entry == NULL) {
|
|
||||||
lprintf(LOG_ERR, "Aborting send command, unable to build");
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
entry = ipmi_lan_build_cmd(intf, req);
|
||||||
|
if (entry == NULL) {
|
||||||
|
lprintf(LOG_ERR, "Aborting send command, unable to build");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (ipmi_lan_send_packet(intf, entry->msg_data, entry->msg_len) < 0) {
|
if (ipmi_lan_send_packet(intf, entry->msg_data, entry->msg_len) < 0) {
|
||||||
try++;
|
try++;
|
||||||
usleep(5000);
|
usleep(5000);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user