On Sat, 15 Apr 2000, 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).
/proc/net/route exists as long as the kernel is compiled with networking
capabilities, it's the content that varies with the configured devices,
ie. its presence alone is not a good indication whether there's currently
a dialled up connection.
>
> Regards,
> George
--
Henrik Olsen, Dawn Solutions I/S URL=http://www.iaeste.dk/~henrik/
ZOOLOGY, n.
The science and history of the animal kingdom, including its king, the
House Fly (Musca maledicta). The Devil's Dictionary, Ambrose Bierce.
_________________________________________________________________
Unsubscribe & list info -- http://www.scruz.net/~luke/signup.htm
Mersenne Prime FAQ -- http://www.tasam.com/~lrwiman/FAQ-mers