moved ipmi_csum to helper, as both lan and lanplus use it.

This commit is contained in:
Jeremy Ellington 2004-05-27 15:51:35 +00:00
parent f72472a649
commit ac3b1c8eda
2 changed files with 1 additions and 8 deletions

View File

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

View File

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