9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@swtch.com>
To: 9fans@9fans.net
Subject: Re: [9fans] 9vx dns funny
Date: Tue,  8 Jul 2008 13:17:53 -0400	[thread overview]
Message-ID: <20080708171605.49E881E8C6E@holo.morphisms.net> (raw)
In-Reply-To: <8db7f9a1866d1cd5c07eca58a04f7d35@quanstro.net>

> here's the symptom
>
> 	ndb/dnsquery 9hal.ath.cx
> 	9hal.ath.cx ip	9.0.0.0

Fixed.  Instead of the tacky solution, one can check
the return value from v4parseip.

> on a related note, would it be worth while to
> put effort into supporting ptr queries, ip6 &c using
> the host's lookup facilities or should that effort be
> directed into adding bits to enable ndb/dns to run?

If someone sends me code to answer other DNS queries
or to convert the current devip to IPv6, I would gladly take it.

I intend 9vx to be a very thin layer atop the host's
resources, not a second machine that you have
to administer.  If you want a second machine, there is
always VMware.

That said, if some people do want to switch over to
Plan 9-provided versions of some host resources,
that doesn't bother me, as long as they aren't required.
I'm happy to make it possible to run ndb/dns or
fossil instead of using the host's DNS and file system,
but it's important that they're not required.

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

The relevant low-level Linux ethernet device code
is in p9p.  In fact, you could probably just add a new
ether0 protocol directory to devip instead of writing
a new devether wrapper driver.

Russ



  parent reply	other threads:[~2008-07-08 17:17 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 [this message]
2008-07-08 17:25   ` erik quanstrom
2008-07-10  7:40   ` Nathaniel W Filardo
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=20080708171605.49E881E8C6E@holo.morphisms.net \
    --to=rsc@swtch.com \
    --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).