George Woltman wrote:
> 
> Hi,
> 
> At 10:56 AM 4/15/00 -0700, Will Edgington wrote:
> >near line
> >761 of linux/primenet.c, where there's an fopen("/proc/net/route",
> >"r") inside an #ifdef __linux__.  Look lower down, after the #endif,
> >and note that __FreeBSD__ doesn't have a similar check; it simply
> >always returns TRUE.  Looks to me like it would be very simple to add
> >a check for the fopen() failing due to permissions or whatever under
> >Linux and return TRUE (i.e., that the system is connected to the
> >network), perhaps based on a new flag in one of the .ini files.
> 
> This is a good fix.  The next v20 release will return TRUE if /proc/net/route
> is not readable.  You can keep the current behavior by setting
> "RouteRequired=1" in primenet.ini.
> 
> A question to all you linux users with modems:  I assume that the
> /proc/net/route file exists when you are not connected.  Let me know
> if this is not the case (I'll need to change the default setting of
> RouteRequired above).
> 
> Regards,
> George
> 

>From memory, it should still exist, as the loopback device will always
be present, and thus there will always be a loopback route.

Kind Regards, Martijn

-- 
http://jkf.penguinpowered.com
Linux distributies voor maar
Fl 10 per CD, inclusief verzendkosten!
_________________________________________________________________
Unsubscribe & list info -- http://www.scruz.net/~luke/signup.htm
Mersenne Prime FAQ      -- http://www.tasam.com/~lrwiman/FAQ-mers

Reply via email to