Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jun 2001 19:19:04 -0700
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        hackers@FreeBSD.ORG
Cc:        Brian Somers <brian@Awfulhak.org>, Poul-Henning Kamp <phk@critter.freebsd.dk>
Subject:   Re: cloning network interfaces
Message-ID:  <20010608191904.A18847@Odin.AC.HMC.Edu>
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
References:  <phk@critter.freebsd.dk> <200106071119.f57BJr766008@hak.lan.Awfulhak.org> <20010607164812.A32379@Odin.AC.HMC.Edu>

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

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




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