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
fd96022ec2
commit
f72472a649
@ -136,3 +136,12 @@ void signal_handler(int sig, void * handler)
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
unsigned char ipmi_csum(unsigned char * d, int s)
|
||||
{
|
||||
unsigned char c = 0;
|
||||
for (; s > 0; s--, d++)
|
||||
c += *d;
|
||||
return -c;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user