lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] raw UDP pcb issue(s)


From: Simon Goldschmidt
Subject: Re: [lwip-users] raw UDP pcb issue(s)
Date: Tue, 19 Jul 2016 08:49:22 +0200

Laurent BIERGE wrote:
> So like i said, most of the time udp_input() don't find matching pcb, but the 
> message is stored.
> So when udp_input() manage to match with a local pcb, it calls the callback 
> with the good pcb but with the first pbuf stored.
> [..]
> ///// miracle ! udp_input() find a match, it empty all the buffers stored 
> with this pcb starting with 1.
> (my programme isn't designed to rcv several messagesĀ at once but i know for 
> sure that udp_input calls
> the callback as many times as it has pbufs stored for this pcb)

You're getting something totally wrong here. There's nothing in lwIP or the udp 
part that stores unreceived frames. UDP datagrams are either passed to a 
matching pcb's recv callback directly or dropped.

I suspect a bug in your netif driver or in the remote client.


Simon



reply via email to

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