9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] 9vx dns funny
@ 2008-07-06 15:56 erik quanstrom
  2008-07-06 17:20 ` ron minnich
  2008-07-08 17:17 ` Russ Cox
  0 siblings, 2 replies; 7+ messages in thread
From: erik quanstrom @ 2008-07-06 15:56 UTC (permalink / raw)
  To: 9fans

here's the symptom

	ndb/dnsquery 9hal.ath.cx
	9hal.ath.cx ip	9.0.0.0

the problem is that devip.c:/^lookuphost tries
to avoid calling gethostbyname when given an
ip address by testing to see if the return value
of v4parseip is nozero.  unfortunately, v4parseip
parses "9hal.ath.cx" as the ip address 9.0.0.0.

here is one tacky solution:

; diff -c devip.c /tmp
devip.c:811,817 - /tmp/devip.c:811,816
  	v4parseip(to, s);
  	ip = nhgetl(to);
  	if(ip != 0)
- 	if(strspn(s, "0123456789.") == strlen(s))
  		return 0;
  	if((s = hostlookup(s)) == nil)
  		return -1;

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?

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.

- erik



^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [9fans] 9vx dns funny
@ 2008-07-06 19:36 erik quanstrom
  0 siblings, 0 replies; 7+ messages in thread
From: erik quanstrom @ 2008-07-06 19:36 UTC (permalink / raw)
  To: rminnich, 9fans

> > 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.
> >
>
> Part of the reason I have not stopped using lguest, although now I use
> both 9vx and lguest.
>
> You could write a plan 9 device for vx that drives raw frames to linux
> I suppose.

i was trying to say that was one of two potential ways to go.
the question is, which way is 9vx going.  or,
- is there any reason writing #l for 9vx is not a good idea
technically; and
- is #l something that might have a chance to become part of
9vx?

- erik

p.s. wild idea: 9pxevxload.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-07-10 10:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-06 15:56 [9fans] 9vx dns funny 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
2008-07-10 10:40     ` maht
2008-07-06 19:36 erik quanstrom

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