version 1.5, 2015/06/25 17:53:49
|
version 1.6, 2017/12/08 00:07:48
|
Line 12 terms:
|
Line 12 terms:
|
All of the documentation and software included in the ELWIX and AITNET |
All of the documentation and software included in the ELWIX and AITNET |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
|
|
Copyright 2004 - 2015 | Copyright 2004 - 2017 |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
|
|
Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
Line 90 unsigned int crcCalc(unsigned char * __restrict psBuf,
|
Line 90 unsigned int crcCalc(unsigned char * __restrict psBuf,
|
* return: -1 error, !=-1 Checksum |
* return: -1 error, !=-1 Checksum |
*/ |
*/ |
unsigned short crcIP(unsigned char * __restrict buf, int bufLen); |
unsigned short crcIP(unsigned char * __restrict buf, int bufLen); |
|
/* |
|
* crcTCP() - Checksum for TCP v4 communication |
|
* |
|
* @buf = Data for calculation |
|
* @bufLen = Length of data |
|
* @th = TCP header |
|
* return: -1 error, !=-1 Checksum |
|
*/ |
|
unsigned short crcTCP(struct in_addr src, struct in_addr dst, |
|
unsigned char * __restrict th); |
|
/* |
|
* crcUDP() - Checksum for UDP v4 communication |
|
* |
|
* @buf = Data for calculation |
|
* @bufLen = Length of data |
|
* @uh = UDP header |
|
* return: -1 error, !=-1 Checksum |
|
*/ |
|
unsigned short crcUDP(struct in_addr src, struct in_addr dst, |
|
unsigned char * __restrict uh); |
|
|
/* |
/* |
* crcFletcher16() - Fletcher-16 Checksum computing |
* crcFletcher16() - Fletcher-16 Checksum computing |
* |
* |