lwip-users
[Top][All Lists]
Advanced

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

Re: WG: [lwip-users] DNS for socket API


From: Kieran Mansley
Subject: Re: WG: [lwip-users] DNS for socket API
Date: Tue, 08 Sep 2009 15:46:19 +0100

On Tue, 2009-09-08 at 16:33 +0200, Mathias Zenger wrote:
> Thanks for your hint. I dug even deeper but still wasn't successful. At the
> end I was able to break in
> 
> do_dns_found(const char *name, struct ip_addr *ipaddr, void *arg)
> 
> This method returns ERR_VAL (-8) which says "timeout or memory error" or
> "illegal value" or "dns server response was invalid" respectively (depending
> on different method comments).

This means that the ipaddr argument was NULL, which in turn signifies an
error processing the DNS request.  Look at where pEntry->found() is
called (that function pointer points to do_dns_found in this case) with
a NULL second argument in core/dns.c.  This should explain what is going
wrong.

If you can get debug output then turning on the DNS_DEBUG log level
should show the reason as all the calls to pEntry->found() that use a
NULL second argument log the reason.

Kieran





reply via email to

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