Go to the FreeLists Home Page Home Signup Help Login
 



[openbeosnetteam] || [Date Prev] [02-2004 Date Index] [Date Next] || [Thread Prev] [02-2004 Thread Index] [Thread Next]

[openbeosnetteam] Re: Fix for resolving host names

  • From: "Brennan Cleveland" <warriorspot@xxxxxxxxxxxxx>
  • To: openbeosnetteam@xxxxxxxxxxxxx
  • Date: Tue, 3 Feb 2004 16:49:24 -0600
>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






[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.