|
From: | vincent cui |
Subject: | Re: [lwip-users] ping thread fails to works when IP, UDP, TCP and ICMP checksums by hardware |
Date: | Fri, 8 Jun 2012 02:01:38 +0000 |
My platform is Cortex M3. I think it is not endianess issue ! From:
lwip-users-bounces+address@hidden [mailto:lwip-users-bounces+address@hidden
On Behalf Of Colin Nichols What platform are you running on? Hi , I found a strange case about ping. All test is base on removeing the
iecho->chksum = inet_chksum(iecho, len);
And using HW checksum If I set ping_target with IPV4_ADDR(&ping_target, 192, 168, 1, 1), then send it out, the received icmp packet is from 192.168.1.1. host If I set ping_target with ipaddr_aton(“192.168.1.1”, &ping_target), then send it out, the received icmp packet is not from
192.168.1.1 host. I check the ping_target.addr value in the two case, they are same, but received icmp result is different ! Also, I add “printf(“%x \n”, ping_target.addr)”
code after IPV4_ADDR(&ping_target, 192, 168, 1, 1), the received icmp packet is not from 192.168.1.1 host too . Anyone meet the problem ? Vincent From:
lwip-users-bounces+address@hidden [mailto:lwip-users-bounces+address@hidden]
On Behalf Of Funk, Artur An idea: comment this line in ping_prepare_echo function: iecho->chksum = inet_chksum(iecho, len); Von:
lwip-users-bounces+address@hidden [mailto:lwip-users-bounces+address@hidden]
Im Auftrag von vincent cui All I ported ping thread from contrib. packet, and found that it fails to works when IP, UDP, TCP and ICMP checksums by HW. But it works when those checksums by SW. Anyone meets same problem ? Regards, Vincent |
[Prev in Thread] | Current Thread | [Next in Thread] |