diff options
Diffstat (limited to 'nuttx/net/utils/utils.h')
-rw-r--r-- | nuttx/net/utils/utils.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/nuttx/net/utils/utils.h b/nuttx/net/utils/utils.h index 6ecb47ce6..76401a27a 100644 --- a/nuttx/net/utils/utils.h +++ b/nuttx/net/utils/utils.h @@ -175,11 +175,25 @@ uint16_t udp_chksum(FAR struct net_driver_s *dev); * Name: icmp_chksum * * Description: - * Calculate the checksum of the ICMP message + * Calculate the checksum of the IPv4 ICMP message * ****************************************************************************/ +#if defined(CONFIG_NET_ICMP) && defined(CONFIG_NET_ICMP_PING) uint16_t icmp_chksum(FAR struct net_driver_s *dev, int len); +#endif + +/**************************************************************************** + * Name: icmpv6_chksum + * + * Description: + * Calculate the checksum of the ICMPv6 message + * + ****************************************************************************/ + +#ifdef CONFIG_NET_ICMPv6 +uint16_t icmpv6_chksum(FAR struct net_driver_s *dev); +#endif #undef EXTERN #ifdef __cplusplus |