[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #26658] ping tool ICMP checksum error.
From: |
hanhui |
Subject: |
[lwip-devel] [bug #26658] ping tool ICMP checksum error. |
Date: |
Sun, 24 May 2009 12:39:35 +0000 |
User-agent: |
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; MEGAUPLOAD 2.0) |
Follow-up Comment #1, bug #26658 (project lwip):
I have a advice,
need for speed, htons() htonl() ...
is macro like this:
#define LWIP_PLATFORM_HTONL(x) (u32_t)((((x) & 0x000000ff) << 24) |
(((x) & 0x0000ff00) << 8) |
(((x) & 0x00ff0000) >> 8) |
(((x) & 0xff000000) >> 24))
if like ping tool use htons() like this :
iecho->seqno = htons(++ping_seq_num);
it will be error!!!
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?26658>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/