lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #22530] api_msg.c's recv_raw() does not consume data


From: Frédéric Bernon
Subject: [lwip-devel] [bug #22530] api_msg.c's recv_raw() does not consume data
Date: Wed, 12 Mar 2008 10:27:01 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12

Follow-up Comment #7, bug #22530 (project lwip):

I see a "problem" during my tests: what is supposed to return a raw pcb at
the netconn/socket layer? Should the payload have to point on the IP header,
or on the IP payload ?

I ask that because a hidden problem with the current code is - I suppose -
the input processing packet should do a pbuf_header so, sample like the ping.c
(with LWIP_SOCKET=1) in the contrib folder failed (see ping.c, line~162) : the
code suppose that lwip_recvfrom return the IP payload (so, the ICMP header),
but is it the normal behavior?

Is it the stack which should add a "pbuf_header( q, -PBUF_IP_HLEN)" (or
better, use IPH_HL), or to the application ?


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

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