On Wed, Oct 15, 2014, at 07:38, Mark Felder wrote:
On Tue, Oct 14, 2014, at 21:00, Jeremy Laidman wrote:
Perhaps we need to see the values of these. Wallace, can you recompile after inserting these lines immediately before line 120:
dbgprintf("ARES host=%s\n", hent->h_name); dbgprintf("ARES status=%d name=%s\n", status, dnsc->name); dbgprintf("ARES addr size=%d\n", sizeof(dnsc->addr)); dbgprintf("ARES addr hex=%#lx\n", dnsc->addr); dbgprintf("ARES addr ascii=%s\n", inet_ntoa(dnsc->addr));
Are you talking about line 120 in xymonnet/dns.c ? It's not obvious which file you're talking about in the xymonnet source code. It would be clearer if you provided a diff in the future.
It does appear Jeremy meant dns.c. I'm providing a diff -- it does compile as Jeremy said.