mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
net/: Fix net checksum related issue
1. Remove the unused and unimplemented ipv6_chksum declaration 2. Update NET_ARCH_CHKSUM description to align with the implementation 3. Declare all checksum function prototype regardless CONFIG_NET_ARCH_CHKSUM 4. Remove the CONFIG_NET_ARCH_CHKSUM guard for tcp_ipv[4|6]_chksum
This commit is contained in:
@@ -696,27 +696,6 @@ void net_incr32(FAR uint8_t *op32, uint16_t op16);
|
||||
uint16_t ipv4_chksum(FAR struct net_driver_s *dev);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: ipv6_chksum
|
||||
*
|
||||
* Description:
|
||||
* Calculate the IPv6 header checksum of the packet header in d_buf.
|
||||
*
|
||||
* The IPv6 header checksum is the Internet checksum of the 40 bytes of
|
||||
* the IPv6 header.
|
||||
*
|
||||
* If CONFIG_NET_ARCH_CHKSUM is defined, then this function must be
|
||||
* provided by architecture-specific logic.
|
||||
*
|
||||
* Returned Value:
|
||||
* The IPv6 header checksum of the IPv6 header in the d_buf buffer.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
uint16_t ipv6_chksum(FAR struct net_driver_s *dev);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: netdev_ipv4_hdrlen
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user