[Top][All Lists]
[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
- [lwip-users] lwip 1.3 UDP - DNS strange behaviour, Sergio Sider, 2009/01/19
- Re: [lwip-users] lwip 1.3 UDP - DNS strange behaviour, Rejean Groleau, 2009/01/19
- Re: [lwip-users] lwip 1.3 UDP - DNS strange behaviour,
Jonathan Larmour <=
- Re: [lwip-users] lwip 1.3 UDP - DNS strange behaviour, Sergio Sider, 2009/01/19
- Re: [lwip-users] lwip 1.3 UDP - DNS strange behaviour, Sergio Sider, 2009/01/20
- Re: [lwip-users] lwip 1.3 UDP - DNS strange behaviour, Jonathan Larmour, 2009/01/20
- Re: [lwip-users] lwip 1.3 UDP - DNS strange behaviour, Sergio Sider, 2009/01/20
- Re: [lwip-users] lwip 1.3 UDP - DNS strange behaviour, address@hidden, 2009/01/20
- Re: [lwip-users] lwip 1.3 UDP - DNS strange behaviour, Jonathan Larmour, 2009/01/20
- Re: [lwip-users] lwip 1.3 UDP - DNS strange behaviour, Rejean Groleau, 2009/01/20
- Re: [lwip-users] lwip 1.3 UDP - DNS strange behaviour, Sergio Sider, 2009/01/20
- Re: [lwip-users] lwip 1.3 UDP - DNS strange behaviour, address@hidden, 2009/01/20
- Re: [lwip-users] lwip 1.3 UDP - DNS strange behaviour, Sergio Sider, 2009/01/20