mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
moved ipmi_csum to helper, as both lan and lanplus use it.
This commit is contained in:
parent
f72472a649
commit
ac3b1c8eda
@ -428,13 +428,6 @@ ipmi_auth_md5(struct ipmi_session * s, unsigned char * data, int data_len)
|
||||
return digest;
|
||||
}
|
||||
|
||||
unsigned char ipmi_csum(unsigned char * d, int s)
|
||||
{
|
||||
unsigned char c = 0;
|
||||
for (; s > 0; s--, d++)
|
||||
c += *d;
|
||||
return -c;
|
||||
}
|
||||
|
||||
static struct ipmi_rs *
|
||||
ipmi_lan_poll_recv(struct ipmi_intf * intf)
|
||||
|
@ -60,7 +60,7 @@
|
||||
#define IPMI_SESSION_PRIV_ADMIN 0x4
|
||||
#define IPMI_SESSION_PRIV_OEM 0x5
|
||||
|
||||
unsigned char ipmi_csum(unsigned char * d, int s);
|
||||
|
||||
|
||||
struct ipmi_rs * ipmi_lan_send_cmd(struct ipmi_intf * intf, struct ipmi_rq * req);
|
||||
int ipmi_lan_open(struct ipmi_intf * intf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user