From owner-freebsd-hackers Sun Jun 10 19:51:50 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 5989A37B401 for ; Sun, 10 Jun 2001 19:51:43 -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 f5B2pZd20240; Sun, 10 Jun 2001 19:51:35 -0700 Date: Sun, 10 Jun 2001 19:51:35 -0700 From: Brooks Davis To: Hajimu UMEMOTO Cc: hackers@FreeBSD.ORG, brian@Awfulhak.org, phk@critter.freebsd.dk Subject: Re: cloning network interfaces Message-ID: <20010610195135.A19608@Odin.AC.HMC.Edu> References: <200106071119.f57BJr766008@hak.lan.Awfulhak.org> <20010607164812.A32379@Odin.AC.HMC.Edu> <20010608191904.A18847@Odin.AC.HMC.Edu> <20010610.232907.74740159.ume@mahoroba.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="/9DWx/yDrRhgMJTb" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010610.232907.74740159.ume@mahoroba.org>; from ume@mahoroba.org on Sun, Jun 10, 2001 at 11:29:07PM +0900 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 10, 2001 at 11:29:07PM +0900, Hajimu UMEMOTO wrote: > I think it is not BSD network way. Recent NetBSD has network > interface cloning. It uses SIOCIFCREATE and SIOCIFDESTROY. It may > good to port it to FreeBSD. I'll take a look at it. I'm not convinced the /dev/if_gif way is wrong. Creation and destruction is an out of band operation and using socket interface IOCTLS seems to change their semantics significantly. Without devfs, I'd probably agree because you'd have to add and remove the /dev/if_gif device manualy, but with it, device creation is basicaly free (ok, for now it takes a major, but not for long.) Anyway, I'll consider it, but I don't promise to adopt it. > NetBSD's ifconfig has `create' and `destroy' keyword for it. >=20 > You can create gif interface by > ifconfig gif0 create > or > ifconfig gif0 create tunnel 10.0.0.1 10.0.2.2 > To destroy gif interface: > ifconfig gif0 destroy I've moved to `plumb' and `umplumb' like solaris. I'll definatly add `create' and `destroy'. > BTW, gifconfig will be obsoleted soon as KAME and other BSDs did. Good, it doesn't make much sense. -- 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 --/9DWx/yDrRhgMJTb 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 iD8DBQE7JDI2XY6L6fI4GtQRAoI2AKCmhOmlkRPAzqQZ7I/pcY3HTkY+/ACgyCRV p+/qPpy+vAkxa6vSo5sm/lc= =j6TJ -----END PGP SIGNATURE----- --/9DWx/yDrRhgMJTb-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message