From owner-freebsd-questions Mon Oct 1 7:22:13 2001 Delivered-To: freebsd-questions@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 1D44B37B408 for ; Mon, 1 Oct 2001 07:21:46 -0700 (PDT) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id f91EJ6158782; Mon, 1 Oct 2001 17:19:06 +0300 (EEST) (envelope-from ru) Date: Mon, 1 Oct 2001 17:19:06 +0300 From: Ruslan Ermilov To: "Gary W. Swearingen" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Diff between "route" command's -iface and -interface options. Message-ID: <20011001171906.A57416@sunbay.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from swear@blarg.net on Sun, Sep 30, 2001 at 03:36:20PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Sep 30, 2001 at 03:36:20PM -0700, Gary W. Swearingen wrote: > Anbody familiar with the "route" command's -iface and -interface > options? The man page is rather sketchy about -interface or the > difference bewteen the two. /usr/43src/sbin/route/route.c has the > following possibly-relevant code. I can't find where the constants are > defined. > > case K_IFACE: > case K_INTERFACE: > iflag++; > break; > > Can anyone improve my confidence that these options do the same thing? > They are synonyms, and also have a side effect on accepting "gateway" argument in the "interface" address format. The constants are defined in generated keywords.h. > I'll write a PR to clarify the man page, but I hate to rely on my poor > C code literacy. Or should I track down a recent route.c committer? > Yes, please. You just hit him. :-) Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message