From owner-cvs-all Sat Feb 26 20:29: 0 2000 Delivered-To: cvs-all@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id C7EFB37B5AC; Sat, 26 Feb 2000 20:28:52 -0800 (PST) (envelope-from robert@cyrus.watson.org) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.9.3/8.9.3) with SMTP id XAA04538; Sat, 26 Feb 2000 23:29:39 -0500 (EST) (envelope-from robert@cyrus.watson.org) Date: Sat, 26 Feb 2000 23:29:39 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org Reply-To: Robert Watson To: Brian Somers Cc: cvs-committers@freebsd.org, cvs-all@freebsd.org, brian@hak.lan.Awfulhak.org Subject: Re: cvs commit: src/sbin/ifconfig ifconfig.8 ifconfig.c In-Reply-To: <200002270221.CAA00850@hak.lan.Awfulhak.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Sun, 27 Feb 2000, Brian Somers wrote: > > rwatson 2000/02/26 10:55:41 PST > > > > Modified files: > > sbin/ifconfig ifconfig.8 ifconfig.c > > Log: > > Introduce ``add'' and ``remove'' as alternatives to ``alias'' and ``delete''. > > Improve compatibility with BSD/OS, and also more accurately reflect that > > IP aliases aren't really any different than the primary IP address on an > > interface. > > Except that the primary interface address will be used for outgoing Actually, that's not correct. There's a best-match search going on here also, I believe. For example, if the IP addresses are in different subnets, in_pcbladdr will select an address based on a routing entry. Typically, ``aliases'' have a netmask of 255.255.255.255, and so they won't match. But you can sort the addresses differently to get a ``non-primary'' address to be selected. Remember that aliases are not just used in the case where they are from an existing network on the interface. :-) Robert N M Watson robert@fledge.watson.org http://www.watson.org/~robert/ PGP key fingerprint: AF B5 5F FF A6 4A 79 37 ED 5F 55 E9 58 04 6A B1 TIS Labs at Network Associates, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message