9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Nathaniel W Filardo <nwf@cs.jhu.edu>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] 9vx dns funny
Date: Thu, 10 Jul 2008 03:40:31 -0400	[thread overview]
Message-ID: <20080710074031.GN14876@masters13.cs.jhu.edu> (raw)
In-Reply-To: <20080708171605.49E881E8C6E@holo.morphisms.net>

[-- Attachment #1: Type: text/plain, Size: 1862 bytes --]

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

[-- Attachment #2: Type: application/pgp-signature, Size: 196 bytes --]

  parent reply	other threads:[~2008-07-10  7:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-06 15:56 erik quanstrom
2008-07-06 17:20 ` ron minnich
2008-07-08 17:17 ` Russ Cox
2008-07-08 17:25   ` erik quanstrom
2008-07-10  7:40   ` Nathaniel W Filardo [this message]
2008-07-10 10:40     ` maht
2008-07-06 19:36 erik quanstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080710074031.GN14876@masters13.cs.jhu.edu \
    --to=nwf@cs.jhu.edu \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).