mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
add noanswer flag, and ipmi_cmd structures
This commit is contained in:
parent
4c99a6f676
commit
b2c96c3a1f
@ -148,15 +148,28 @@ struct ipmi_session {
|
||||
} sol_data;
|
||||
};
|
||||
|
||||
struct ipmi_cmd {
|
||||
int (*func)(struct ipmi_intf * intf, int argc, char ** argv);
|
||||
const char * name;
|
||||
const char * desc;
|
||||
};
|
||||
|
||||
struct ipmi_intf_support {
|
||||
const char * name;
|
||||
int supported;
|
||||
};
|
||||
|
||||
struct ipmi_intf {
|
||||
char name[16];
|
||||
char desc[128];
|
||||
int fd;
|
||||
int opened;
|
||||
int abort;
|
||||
int noanswer;
|
||||
|
||||
struct ipmi_session * session;
|
||||
struct ipmi_oem_handle * oem;
|
||||
struct ipmi_cmd * cmdlist;
|
||||
uint32_t my_addr;
|
||||
uint32_t target_addr;
|
||||
|
||||
|
@ -712,6 +712,10 @@ ipmi_lan_send_cmd(struct ipmi_intf * intf, struct ipmi_rq * req)
|
||||
continue;
|
||||
}
|
||||
|
||||
/* if we are set to noanswer we do not expect response */
|
||||
if (intf->noanswer)
|
||||
break;
|
||||
|
||||
if (ipmi_oem_active(intf, "intelwv2"))
|
||||
ipmi_lan_thump(intf);
|
||||
|
||||
|
@ -2018,6 +2018,10 @@ ipmi_lanplus_send_payload(
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* if we are set to noanswer we do not expect response */
|
||||
if (intf->noanswer)
|
||||
break;
|
||||
|
||||
usleep(100); /* Not sure what this is for */
|
||||
|
||||
/* Remember our connection state */
|
||||
|
Loading…
x
Reference in New Issue
Block a user