anchao commented on code in PR #7616: URL: https://github.com/apache/nuttx/pull/7616#discussion_r1032635300
########## net/utils/utils.h: ########## @@ -211,6 +211,28 @@ void net_ipv6_pref2mask(uint8_t preflen, net_ipv6addr_t mask); uint16_t chksum(uint16_t sum, FAR const uint8_t *data, uint16_t len); +/**************************************************************************** + * Name: chksum_iob + * + * Description: + * Calculate the Internet checksum over an iob chain buffer. + * + * Input Parameters: + * sum - Partial calculations carried over from a previous call to + * chksum(). This should be zero on the first time that check + * sum is called. + * iob - An iob chain buffer over which the checksum is to be computed. + * offset - Specifies the byte offset of the start of valid data. + * + * Returned Value: + * The updated checksum value. + * + ****************************************************************************/ + +#if !defined(CONFIG_NET_ARCH_CHKSUM) && defined(CONFIG_MM_IOB) Review Comment: Done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org