From owner-freebsd-hackers Fri Jul 19 14:20:20 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA20123 for hackers-outgoing; Fri, 19 Jul 1996 14:20:20 -0700 (PDT) Received: from etinc.com ([204.141.95.6]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id OAA20118 for ; Fri, 19 Jul 1996 14:20:16 -0700 (PDT) Received: from dialup-usr11.etinc.com (dialup-usr11.etinc.com [204.141.95.132]) by etinc.com (8.6.12/8.6.9) with SMTP id RAA28448; Fri, 19 Jul 1996 17:26:44 -0400 Date: Fri, 19 Jul 1996 17:26:44 -0400 Message-Id: <199607192126.RAA28448@etinc.com> X-Sender: dennis@etinc.com X-Mailer: Windows Eudora Version 2.0.3 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Archie Cobbs From: dennis@etinc.com (Dennis) Subject: Re: interfaces, routes, etc. Cc: hackers@freebsd.org Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > >> >It wouldn't be hard to modify "route" to accept either type of >> >argument... the question is, does the kernel store interface >> >routes using the actual address or using a pointer to the interface? >> >> You have to do it without trashing the "gateway" concept of passing >> info to devices. > >What do you mean exactly? I'm not that familiar with it. Maybe passing >a gateway of 0.0.0.0 could be an acceptable value for those interfaces >that don't need to know... The address itself makes more sense. So.. route add 200.11.1.1 -interface ppp0 could use 200.11.1.1 as the gateway address. Of course if you wanted to point networks at an interface this wouldnt work, or you'd have to specify a gateway first. For example: route add 200.11.1.1 -interface ppp0 route add -net 200.11.1 200.11.1.1 This way makes the most sense, because there's always a gateway (host) address to send to. Dennis ---------------------------------------------------------------------------- Emerging Technologies, Inc. http://www.etinc.com Synchronous Communications Cards and Routers For Discriminating Tastes. 56k to T1 and beyond. Frame Relay, PPP, HDLC, and X.25 for BSD/OS, FreeBSD and LINUX