lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] lwip 1.3 UDP - DNS strange behaviour


From: Jonathan Larmour
Subject: Re: [lwip-users] lwip 1.3 UDP - DNS strange behaviour
Date: Mon, 19 Jan 2009 19:04:04 +0000
User-agent: Thunderbird 1.5.0.12 (X11/20070530)

Rejean Groleau wrote:
> Hi Sergio,
> 
> I had the same problem a while back. My problem was two-fold:
> 
> First, I did not have enough pbufs (PBUF_POOL_SIZE and MEMP_NUM_PBUF)
> to do everything I was doing at startup. Once I got the LWIP_DEBUGF
> and LWIP_PLATFORM_DIAG macros properly implemented, I was able to see
> the errors coming from the dns_send() function.

That should have timed out eventually though, right? Just checking there
isn't a real bug in the lwIP DNS code here - it shoudl be able to cope with
running out of pbufs.

> Then, I was not waiting for the interface to be up and initialized before
> calling dns_gethostbyname(). This was solved by calling netif_is_up().

Again, did it time out eventually? Or it should have worked shortly after
the interface was up, even if that wasn't straight away.

Jifl
-- 
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["Si fractum non sit, noli id reficere"]------       Opinions==mine




reply via email to

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