casaroli commented on code in PR #21560:
URL: https://github.com/apache/nuttx/pull/21560#discussion_r4509615574
##########
net/netdev/netdev_checksum.c:
##########
@@ -238,6 +240,7 @@ int netdev_checksum_offset(FAR struct net_driver_s *dev)
uint16_t netdev_upperlayer_header_checksum(FAR struct net_driver_s *dev)
{
+#ifdef CONFIG_MM_IOB
#ifdef CONFIG_NET_IPv6
Review Comment:
Done.
##########
net/netdev/netdev_checksum.c:
##########
@@ -201,9 +202,9 @@ int netdev_checksum_start(FAR struct net_driver_s *dev)
int netdev_checksum_offset(FAR struct net_driver_s *dev)
{
-#if defined(CONFIG_NET_UDP) || defined(CONFIG_NET_TCP)
+#if defined(CONFIG_MM_IOB) && \
+ (defined(CONFIG_NET_UDP) || defined(CONFIG_NET_TCP))
uint8_t proto = hardware_chksum_get_proto(dev);
-#endif
#ifdef CONFIG_NET_UDP
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]