Hi Rejean,
Thanks! I will try it as soon as possible.

Regards,
Sergio.

On Mon, Jan 19, 2009 at 3:22 PM, Rejean Groleau <[email protected]>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.
>
> 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().
>
> Tell me if this was any help at all,
>
> -Reggie.
>
>
> Sergio Sider wrote:
> >
> > The call to dns_gethostbyname returns
> > with ERR_INPROGRESS as expected, but the query packets are not sent and
> > the
> > callback function is never called, even after the timeouts... (everything
> > else works, I can ping the interface, webserver is working, and so on). I
> > noticed it only occurs if I call dns_gethostbyname right after
> > initializing
> > lwip (using fixed IP). If I use DHCP or I wait a few seconds after I set
> > the
> > static IP, it works sometimes.
> >
>
> --
> View this message in context:
> http://www.nabble.com/lwip-1.3-UDP---DNS-strange-behaviour-tp21537539p21547506.html
> Sent from the lwip-users mailing list archive at Nabble.com.
>
>
>
> _______________________________________________
> lwip-users mailing list
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/lwip-users
>
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to