Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jun 2001 11:26:48 -0700
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Jun-ichiro itojun Hagino <itojun@iijlab.net>
Cc:        net@FreeBSD.ORG
Subject:   Re: review request: network interface cloning
Message-ID:  <20010627112648.B12739@Odin.AC.HMC.Edu>
In-Reply-To: <20010627181051.E958A7C2@starfruit.itojun.org>; from itojun@iijlab.net on Thu, Jun 28, 2001 at 03:10:51AM %2B0900
References:  <20010626144313.A7909@Odin.AC.HMC.Edu> <20010627181051.E958A7C2@starfruit.itojun.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010627112648.B12739>