anchao commented on code in PR #7616:
URL: https://github.com/apache/nuttx/pull/7616#discussion_r1032635835


##########
net/utils/utils.h:
##########
@@ -377,6 +430,20 @@ uint16_t udp_ipv6_chksum(FAR struct net_driver_s *dev);
 uint16_t icmp_chksum(FAR struct net_driver_s *dev, int len);
 #endif
 
+/****************************************************************************
+ * Name: icmp_chksum_iob
+ *
+ * Description:
+ *   Calculate the checksum of the ICMP message, the input can be an I/O
+ *   buffer chain
+ *
+ ****************************************************************************/
+
+#if (defined(CONFIG_NET_ICMP) || \
+     defined(CONFIG_NET_ICMPv6)) && defined(CONFIG_MM_IOB)

Review Comment:
   Done



##########
net/utils/utils.h:
##########
@@ -377,6 +430,20 @@ uint16_t udp_ipv6_chksum(FAR struct net_driver_s *dev);
 uint16_t icmp_chksum(FAR struct net_driver_s *dev, int len);
 #endif
 
+/****************************************************************************
+ * Name: icmp_chksum_iob
+ *
+ * Description:
+ *   Calculate the checksum of the ICMP message, the input can be an I/O
+ *   buffer chain
+ *
+ ****************************************************************************/
+
+#if (defined(CONFIG_NET_ICMP) || \
+     defined(CONFIG_NET_ICMPv6)) && defined(CONFIG_MM_IOB)
+uint16_t icmp_chksum_iob(FAR struct iob_s *iob);
+#endif /* CONFIG_NET_ICMP */

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

Reply via email to