From owner-freebsd-hackers Fri Jun 8 19:19: 8 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 93C6937B401 for ; Fri, 8 Jun 2001 19:19:05 -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 f592J4720842; Fri, 8 Jun 2001 19:19:04 -0700 Date: Fri, 8 Jun 2001 19:19:04 -0700 From: Brooks Davis To: hackers@FreeBSD.ORG Cc: Brian Somers , Poul-Henning Kamp Subject: Re: cloning network interfaces Message-ID: <20010608191904.A18847@Odin.AC.HMC.Edu> References: <200106071119.f57BJr766008@hak.lan.Awfulhak.org> <20010607164812.A32379@Odin.AC.HMC.Edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="ReaqsoxgOBHFXBhH" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010607164812.A32379@Odin.AC.HMC.Edu>; from brooks@one-eyed-alien.net on Thu, Jun 07, 2001 at 04:48:12PM -0700 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 --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Following Brian's suggestion, I've modified gif to create a /dev/if_gif device with is controlled by the IOCIFMANAGE ioctl which allows creation and deletion of specific devices and creation of wildcard devices. I've hacked ifconfig to support this in a general manner. If you know which one you want to use you can do something like ifconfig gif783 10.0.0.1 10.0.0.2 # gifconfig has to come second because I didn't add creation support to # it because I want to kill it off in favor of ifconfig "tsrc" and # "tdst" parameters like Solaris uses. gifconfig gif783 blah or if you don't care which one you use you can do newgif=3D`ifconfig gif#` gifconfig ${newgif} blah=20 ifconfig ${newgif} 10.0.0.1 10.0.0.2 You can also delete interfaces: ifconfig -D gif783 Additionaly, I removed all the annoying refrences to gif.h and NGIF, and moved things around so gif can be loaded and unloaded as a module. A copy of the diff as avaiable at the URL below and I'm submitting a PR titled "[PATCH] make gif fully dynamic". http://www.one-eyed-alien.net/~brooks/FreeBSD/gif.diff -- 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 --ReaqsoxgOBHFXBhH 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 iD8DBQE7IYeXXY6L6fI4GtQRAmlnAJ48CBNaHhSgTCUMVtQLya+p9o9ovACdH77w vtSanFX9GDrkNFOONycYVwY= =f8KG -----END PGP SIGNATURE----- --ReaqsoxgOBHFXBhH-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message