9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] dnserver.c
@ 1998-12-16 15:44 presotto
  0 siblings, 0 replies; 5+ messages in thread
From: presotto @ 1998-12-16 15:44 UTC (permalink / raw)


thanks

------ forwarded message follows ------

>From cse.psu.edu!owner-9fans Wed Dec 16 02:49:11 EST 1998
Received: from plan9.bell-labs.com ([135.104.9.2]) by plan9; Wed Dec 16 02:49:11 EST 1998
Received: from cse.psu.edu ([130.203.3.50]) by plan9; Wed Dec 16 02:49:04 EST 1998
Received: from localhost (majordom@localhost)
	by cse.psu.edu (8.8.8/8.8.8) with SMTP id CAA14098;
	Wed, 16 Dec 1998 02:48:57 -0500 (EST)
Received: by claven.cse.psu.edu (bulk_mailer v1.5); Wed, 16 Dec 1998 02:48:48 -0500
Received: (from majordom@localhost)
	by cse.psu.edu (8.8.8/8.8.8) id CAA14056
	for 9fans-outgoing; Wed, 16 Dec 1998 02:48:36 -0500 (EST)
X-Authentication-Warning: claven.cse.psu.edu: majordom set sender to owner-9fans using -f
Received: from ar.aichi-u.ac.jp (arisawa@ar.aichi-u.ac.jp [202.250.160.40])
	by cse.psu.edu (8.8.8/8.8.8) with SMTP id CAA14051
	for <9fans@cse.psu.edu>; Wed, 16 Dec 1998 02:48:31 -0500 (EST)
Date: Wed, 16 Dec 1998 02:48:31 -0500 (EST)
From: arisawa@ar.aichi-u.ac.jp
Message-Id: <199812160748.CAA14051@cse.psu.edu>
To: 9fans@cse.psu.edu
Subject: [9fans] dnserver.c
Sender: owner-9fans@cse.psu.edu
Reply-To: 9fans@cse.psu.edu
Precedence: bulk

Hello 9fans!

It seems to me the following codes are buggy.
		len = read(fd, buf, sizeof(buf));
		getactivity();  /* this line is added by the boddle 811708952 */
		err = convM2DNS(&buf[Udphdrsize], len, &reqmsg);
 in dnsserver() in ndb/dnserver.c

I think they should be:
		len = read(fd, buf, sizeof(buf));
		getactivity();  /* this line is added by the boddle 811708952 */
		len -= Udphdrsize;
		err = convM2DNS(&buf[Udphdrsize], len, &reqmsg);


We can find similar codes in dnresolve.c
		len = read(fd, ibuf, Udphdrsize+Maxudp);
		alarm(0);
		len -= Udphdrsize;
		if(len < 0)
			return -1;	/* timed out */
		/* convert into internal format  */
		err = convM2DNS(&ibuf[Udphdrsize], len, mp);

Kenji Arisawa
E-mail: arisawa@aichi-u.ac.jp




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

* [9fans] dnserver.c
@ 1998-12-17  6:31 G.David
  0 siblings, 0 replies; 5+ messages in thread
From: G.David @ 1998-12-17  6:31 UTC (permalink / raw)


bind -a '#l1' /net
ip/ipconfig -b -e ether1 -m netmask ipaddress

look at the man page for ipconfig that came with the boddles.

db




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

* [9fans] dnserver.c
@ 1998-12-17  4:18 Kenji
  0 siblings, 0 replies; 5+ messages in thread
From: Kenji @ 1998-12-17  4:18 UTC (permalink / raw)


Hi David,

Your multi-ether began to work.
By the way, how can I assign IP to the second card?

Thank you for your comments:
>That is the old DNS code.

Kenji Arisawa
E-mail: arisawa@aichi-u.ac.jp





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

* [9fans] dnserver.c
@ 1998-12-17  1:58 Kenji
  0 siblings, 0 replies; 5+ messages in thread
From: Kenji @ 1998-12-17  1:58 UTC (permalink / raw)


David says:
>That is the old DNS code.  Get the updated code from
>ftp://plan9.bell-labs.com/plan9/update/ndb

Oh! You are right.
There are two updated ndb codes!
ftp://plan9.bell-labs.com/plan9/update/ndb
and
ftp://plan9.bell-labs.com/plan9/update/cmd/ndb
I have discussed on latter.

Some comments on update/cmd/ndb will be required in the
directory.

Kenji Arisawa
E-mail: arisawa@aichi-u.ac.jp




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

* [9fans] dnserver.c
@ 1998-12-16  7:48 arisawa
  0 siblings, 0 replies; 5+ messages in thread
From: arisawa @ 1998-12-16  7:48 UTC (permalink / raw)


Hello 9fans!

It seems to me the following codes are buggy.
		len = read(fd, buf, sizeof(buf));
		getactivity();  /* this line is added by the boddle 811708952 */
		err = convM2DNS(&buf[Udphdrsize], len, &reqmsg);
 in dnsserver() in ndb/dnserver.c

I think they should be:
		len = read(fd, buf, sizeof(buf));
		getactivity();  /* this line is added by the boddle 811708952 */
		len -= Udphdrsize;
		err = convM2DNS(&buf[Udphdrsize], len, &reqmsg);


We can find similar codes in dnresolve.c
		len = read(fd, ibuf, Udphdrsize+Maxudp);
		alarm(0);
		len -= Udphdrsize;
		if(len < 0)
			return -1;	/* timed out */
		/* convert into internal format  */
		err = convM2DNS(&ibuf[Udphdrsize], len, mp);

Kenji Arisawa
E-mail: arisawa@aichi-u.ac.jp




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

end of thread, other threads:[~1998-12-17  6:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-12-16 15:44 [9fans] dnserver.c presotto
  -- strict thread matches above, loose matches on Subject: below --
1998-12-17  6:31 G.David
1998-12-17  4:18 Kenji
1998-12-17  1:58 Kenji
1998-12-16  7:48 arisawa

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