Date: Wed, 6 Jun 2001 14:12:28 -0700 From: Brooks Davis <brooks@one-eyed-alien.net> To: hackers@freebsd.org Subject: cloning network interfaces Message-ID: <20010606141228.A13639@Odin.AC.HMC.Edu>
next in thread | raw e-mail | index | archive | help
--6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm working on a project that will be using a whole lot of gif(4) devices. Since I'd written an almost-clone patch for snp and gif's current lack of cloning annoyed me, I figured I'd take a look at writing a patch for it. Unfortunately, it appears to be rather more complicated then I had hoped. With network devices that are also normal devices the way tun is, you do this by just implementing a dev_clone event handler so when the user attempts to open a non-existent instance it's created. The problem with gif is that there's no device in /dev to open. Since most network devices at attached to hardware this usually doesn't matter, but in this case it does. In Solaris the ip.tunX devices have the same problem, but they have a solution of sorts. With them you simply call "ifconfig ip.tun0 plumb" to create ip.tun0. Is this the sort of solution we'd like to use in FreeBSD? Do we instead want to make the network interface name space work like the devfs name space so "ifconfig gif<new> blah" works? How would this work anyway? Comments, thoughts, ideas? -- 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 --6c2NcOVqGQ03X4Wi 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 iD8DBQE7Hpy7XY6L6fI4GtQRAksEAJ40w1gR1WBloa0KVljk40F7uP0c+wCfapX1 43wemuH80Ztxovg6YdwncnE= =HJ2e -----END PGP SIGNATURE----- --6c2NcOVqGQ03X4Wi-- 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?20010606141228.A13639>