From owner-freebsd-current Mon Oct 12 15:42:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA01012 for freebsd-current-outgoing; Mon, 12 Oct 1998 15:42:47 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA00997 for ; Mon, 12 Oct 1998 15:42:41 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.1/8.9.1) id RAA16865; Mon, 12 Oct 1998 17:42:07 -0500 (CDT) Date: Mon, 12 Oct 1998 17:42:07 -0500 From: Dan Nelson To: Richard Wackerbarth , Mike Smith Cc: fjaccard@urbanet.ch, current@FreeBSD.ORG Subject: Re: [GIMPS] /proc/net/route needed Message-ID: <19981012174207.A16615@emsphone.com> References: <000001bdf603$663ab460$0100a8c0@sicel-3-213.urbanet.ch> <199810121806.LAA07090@dingo.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.94.3i In-Reply-To: ; from "Richard Wackerbarth" on Mon Oct 12 17:14:11 GMT 1998 X-OS: FreeBSD 2.2.7-STABLE Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Oct 12), Richard Wackerbarth said: > At 1:06 PM -0500 10/12/98, Mike Smith wrote: > >I can't imagine why a user-space application needs to access *routing* > >information. Why not complain to the people that wrote it? > > From what I know about the GIMPS project, it is probably attempting > to determine if there is an active route to the outside. It does this > so that it can decide whether, or not, to attempt to connect to its > external server. > > I suspect that this was done to avoid bringing up a dialup > connection, etc. In which case, an active-filter on pppd (or a dfilter on user-ppp, but Linux doesn't have user-ppp :) would be a better solution. Think of a two-machine network; the second machine has its default route always pointing to the one with the modem on it, so GIMPS's route test wouldn't help. I say create a dummy /compat/linux/proc/net/route with a suitable default gateway defined. Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT eth0 00000000 0100000A 03 0 1 0 00000000 1500 0 0 should provide a default route via 10.0.0.1 for any program that thinks it needs to know. -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message