[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] UDP send problem
From: |
Kieran Mansley |
Subject: |
Re: [lwip-users] UDP send problem |
Date: |
Tue, 12 Oct 2010 10:19:31 +0100 |
On Tue, 2010-10-12 at 11:10 +0200, Andrea Visinoni wrote:
> i just modified a HTTP client example to send an UDP packet to my NTP
> server. But it works only if i send my packet 3 times, the first 2
> send
> are not working.
> With the HTTP original example it was working correctly since the
> first
> write.
> Any hits? I'm using FreeRTOS + lwip 1.3.2 on a AT32UC3A board
First guess: TCP works because it retransmits and guarantees a reliable
link. UDP doesn't because there are initial losses and it is up to the
application to cope with these and resend if necessary. My guess about
the initial losses is that you don't have an entry in your ARP table
when you do the first send and ARP queueing is disabled so the packets
are just dropped until the ARP response is received and the MAC address
is known.
Kieran