[openbeosnetteam] Re: Fix for resolving host names

>Yes, absolutly. I should not use "DNS" term but Network Hosts Names 
>service...

>Both of them may failing, but I didn't investigate that far.
>What I mean is that I fix *only* the h_errno crashing bug in
>libnet.so.
>But the fact remains that hosts names lookups failed on second try, 
>hence the h_errno value set who previoulsy crash but now returns the 
>error up to client.
>DNS or local /etc/hosts-based, I can't tell, it's still yet to 
>discover. 
>

Well, here is my experience.  The /etc/hosts lookups work fine when
testing ping and ftp on my local network after compiling with your
#undef fix.  I can create an arbitrarily long hosts file and
repeatedly run ping or ftp against these entries without any crashes
at all...

I think you came up with an alternate fix?  Just to emphasize, Im
using the fix proposed yesterday to add "#undef h_errno" prior to the
"extern int h_errno" declaration in the gethostnamaddr.c file (all
the other files in libnet.so that had the h_errno declaration already
had the #undef in them).  This fixed compiled fine, and I have no
problems resolving any host names or aliases on my LAN via the
/etc/hosts file.

Im not using PPP or PPPoE, just LAN.

I hope this helps you clarify where the issue lies.

Brennan


Other related posts: