From owner-freebsd-net Wed Jun 27 11:26:59 2001 Delivered-To: freebsd-net@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 780D937B401 for ; Wed, 27 Jun 2001 11:26:55 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id f5RIQmk20951; Wed, 27 Jun 2001 11:26:48 -0700 Date: Wed, 27 Jun 2001 11:26:48 -0700 From: Brooks Davis To: Jun-ichiro itojun Hagino Cc: net@FreeBSD.ORG Subject: Re: review request: network interface cloning Message-ID: <20010627112648.B12739@Odin.AC.HMC.Edu> References: <20010626144313.A7909@Odin.AC.HMC.Edu> <20010627181051.E958A7C2@starfruit.itojun.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="QKdGvSO+nmPlgiQ/" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010627181051.E958A7C2@starfruit.itojun.org>; from itojun@iijlab.net on Thu, Jun 28, 2001 at 03:10:51AM +0900 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --QKdGvSO+nmPlgiQ/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 28, 2001 at 03:10:51AM +0900, Jun-ichiro itojun Hagino wrote: > >The cloning API isn't quite that of NetBSD because the NetBSD API only > >supported the creation of staticaly numbered interfaces which can lead > >to races and starvation in theory. This patch instead allows interfaces > >to implement wildcard interface creation via "ifconfig gif# create". >=20 > not sure if gif# has a good usage model. if you type "ifconfig gif# > create" you have little idea about the new interface name, hence you > can't configure it after the command (think of the case where you put > the command into /etc/rc.local). It is printed to stdout. Since status is not printed on creation, it is the only thing on stdout so it is easy to hand in a script: newgif=3D`ifconfig gif# create` ifconfig $newgif 10.0.0.1 10.0.0.2 For programmers, notification is done by modifying the name in the ifreq used to create the new interface. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --QKdGvSO+nmPlgiQ/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7OiVnXY6L6fI4GtQRAvozAJ9pN/3BolGQY4We+QHvsiE0HW8lGwCgoWV+ Xjjy/3BF1lHMmQymTeO7C0U= =QECQ -----END PGP SIGNATURE----- --QKdGvSO+nmPlgiQ/-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message