This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 07372c12ecbb6701d7d1dc16989b29c17b6bd64b Author: gaohedong <[email protected]> AuthorDate: Tue Sep 16 22:12:09 2025 +0800 net/icmp: fix icmp checksum bug Use the new cheksum interface to avoid checksum errors caused by IoB discontinuity Signed-off-by: gaohedong <[email protected]> --- net/icmp/icmp_input.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/icmp/icmp_input.c b/net/icmp/icmp_input.c index 1d4abef7894..85d9811e2d0 100644 --- a/net/icmp/icmp_input.c +++ b/net/icmp/icmp_input.c @@ -291,8 +291,7 @@ void icmp_input(FAR struct net_driver_s *dev) icmp = IPBUF(iphdrlen); #ifdef CONFIG_NET_ICMP_CHECKSUMS - csum = icmp_chksum(dev, - ((ipv4->len[0] << 8) | ipv4->len[1]) - iphdrlen); + csum = icmp_chksum_iob(dev->d_iob); if (csum != 0xffff) { ninfo("ICMP checksum error\n");
