lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #43081] The crash error for the active LWIP_NETBUF_REC


From: Przemyslaw Bejtan
Subject: [lwip-devel] [bug #43081] The crash error for the active LWIP_NETBUF_RECVINFO option in api_msg.c (lwip-1.4.1)
Date: Wed, 27 Aug 2014 06:38:12 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0

Follow-up Comment #2, bug #43081 (project lwip):

Yes, you are right. Analyzing deeper original line 184, we can see the
additional mistake. The calculation formula of “*udphdr” address is
incorrect, because “IPH_LEN(iphdr)” refers to the length of  entire IP
package, but it should refer only to the header length of this package. Your
solution is OK, but to be precise, it should be: 

const struct udp_hdr* udphdr = (void*)(((char*)iphdr) + (IPH_HL(iphdr) * 4));

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?43081>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]