add noanswer flag, and ipmi_cmd structures

This commit is contained in:
Duncan Laurie 2005-04-20 20:52:30 +00:00
parent 4c99a6f676
commit b2c96c3a1f
3 changed files with 21 additions and 0 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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 */