mirror of
https://github.com/apache/nuttx.git
synced 2025-12-15 08:44:44 +08:00
committed by
Brennan Ashton
parent
eb4121ce38
commit
2956b8516b
@@ -224,7 +224,7 @@ void net_ipv6_pref2mask(uint8_t preflen, net_ipv6addr_t mask);
|
||||
* data and len.
|
||||
*
|
||||
* Input Parameters:
|
||||
* sum - Partial calculations carried over from a previous call to chksum().
|
||||
* sum - Partial calculations carried over from a previous call to chksum.
|
||||
* This should be zero on the first time that check sum is called.
|
||||
* data - Beginning of the data to include in the checksum.
|
||||
* len - Length of the data to include in the checksum.
|
||||
@@ -254,7 +254,7 @@ uint16_t chksum(uint16_t sum, FAR const uint8_t *data, uint16_t len);
|
||||
*
|
||||
* buf - A pointer to the buffer over which the checksum is to be computed.
|
||||
*
|
||||
* len - The length of the buffer over which the checksum is to be computed.
|
||||
* len - Length of the buffer over which the checksum is to be computed.
|
||||
*
|
||||
* Returned Value:
|
||||
* The Internet checksum of the buffer.
|
||||
|
||||
Reference in New Issue
Block a user