mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-11 11:07:23 +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;
|
} 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 {
|
struct ipmi_intf {
|
||||||
char name[16];
|
char name[16];
|
||||||
char desc[128];
|
char desc[128];
|
||||||
int fd;
|
int fd;
|
||||||
int opened;
|
int opened;
|
||||||
int abort;
|
int abort;
|
||||||
|
int noanswer;
|
||||||
|
|
||||||
struct ipmi_session * session;
|
struct ipmi_session * session;
|
||||||
struct ipmi_oem_handle * oem;
|
struct ipmi_oem_handle * oem;
|
||||||
|
struct ipmi_cmd * cmdlist;
|
||||||
uint32_t my_addr;
|
uint32_t my_addr;
|
||||||
uint32_t target_addr;
|
uint32_t target_addr;
|
||||||
|
|
||||||
|
@ -712,6 +712,10 @@ ipmi_lan_send_cmd(struct ipmi_intf * intf, struct ipmi_rq * req)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* if we are set to noanswer we do not expect response */
|
||||||
|
if (intf->noanswer)
|
||||||
|
break;
|
||||||
|
|
||||||
if (ipmi_oem_active(intf, "intelwv2"))
|
if (ipmi_oem_active(intf, "intelwv2"))
|
||||||
ipmi_lan_thump(intf);
|
ipmi_lan_thump(intf);
|
||||||
|
|
||||||
|
@ -2018,6 +2018,10 @@ ipmi_lanplus_send_payload(
|
|||||||
return NULL;
|
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 */
|
usleep(100); /* Not sure what this is for */
|
||||||
|
|
||||||
/* Remember our connection state */
|
/* Remember our connection state */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user