From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 10 Jul 2008 03:40:31 -0400 From: Nathaniel W Filardo To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20080710074031.GN14876@masters13.cs.jhu.edu> References: <8db7f9a1866d1cd5c07eca58a04f7d35@quanstro.net> <20080708171605.49E881E8C6E@holo.morphisms.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="L5nTHegdhbHhzmSD" Content-Disposition: inline In-Reply-To: <20080708171605.49E881E8C6E@holo.morphisms.net> User-Agent: Mutt/1.5.17 (2007-11-01) Subject: Re: [9fans] 9vx dns funny Topicbox-Message-UUID: e0d56b48-ead3-11e9-9d60-3106f5b1d025 --L5nTHegdhbHhzmSD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 08, 2008 at 01:17:53PM -0400, Russ Cox wrote: > > i guess this gets to a more philosophical question > > on how 9vx networking relates to the host. > >=20 > > personally, i feel it would be more useful to be > > able to use plan 9's native network stack. but > > i'm biased. i want to send aoe/cec/il packets. >=20 > I'm happy to accomodate these kinds of things, > but I don't want to make it required. Running the > native TCP/IP stack requires being able to send and > receive raw ethernet frames on an otherwise unused > ethernet device, something most machines don't have > and also something that usually requires being root. > This would hamper portability quite a bit. >=20 > It would be trivial to write a devether, like devip, > that handles raw ethernet frames. You'd still have to > be root on most systems, but if you stay away from > sending TCP and UDP packets, you can coexist > with the host OS on a single ethernet device. =20 > That would be make sending aoe and cec very easy, > and if you did a bit more work and the host OS turned > a blind eye, you might even get away with IL. > I'd rather see that than drag in the entire network > stack from the Plan 9 kernel. Just a reminder, nothing novel: if you don't mind being root on the host briefly (to run ifconfig, brctl, and tunctl commands), you can create a new TAP interface (and use the file descriptor in 9vx to back a devether) and use Linux's bridging to get ethernet frames to/from the real network interface. This eliminates any "stay away from TCP/UDP" requirement and also lets you use just a single ethernet device. If the Linux host needs to be on the network, it can get its own IP or can be made to masquerade (yick). IIRC THNX does something similar; is there a reason this is unsatisfactory for the uses at hand? --nwf; --L5nTHegdhbHhzmSD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFIdbzvTeQabvr9Tc8RAplcAJ0UkJxsTBe48YR3wk1MePA569QurQCfb2V2 qhp/qJMEFqwImVh/+fBnaus= =/9+1 -----END PGP SIGNATURE----- --L5nTHegdhbHhzmSD--