Search the web
Sign In
New User? Sign Up
dnrd · DNRD discussion list
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
[t.steffen@tu-harburg.de: Re: dnrd "bombs" on SPARCclassic]   Message List  
Reply | Forward Message #180 of 261 |
Re: [t.steffen@...: Re: dnrd "bombs" on SPARCclassic]

Thomas Schoepf <schoepf@...> writes:

> I'm forwarding you three mails that contain more information (plus a patch)
> about the sparc classic problem. I hope this helps you.

[...]

> No, it doesn't, but I have traced down the obvious error and corrected
> them. See the diff file for details. Basically, these are the
> problems:

Somehow I missed one change, here it is.

Thomas <t.steffen@...>

PS: Keep in mind that I'm not on the list.
----------------------------------------------------------------------
--- dnrd-2.8/src/dns.c Thu Jun 15 17:20:59 2000
+++ dnrd-2.8-new/src/dns.c Sat Jan 6 00:02:50 2001
@@ -309,6 +310,7 @@
{
int k;
unsigned char *here;
+ unsigned short int conv;

if (ntohs(((short int *) msg)[2]) == 0) { /* C is nice. */
return (0);
@@ -320,12 +322,12 @@
k = get_objectname(msg, &here, y->name, 0);
y->name[k] = 0;

- memcpy(&y->type, here, sizeof(unsigned short int));
- y->type = ntohs(y->type);
+ memcpy(&conv, here, sizeof(unsigned short int)); /* ths latest */
+ y->type = ntohs(conv);
here += 2;

- memcpy(&y->class, here, sizeof(unsigned short int));
- y->class = ntohs(y->class);
+ memcpy(&conv, here, sizeof(unsigned short int));
+ y->class = ntohs(conv);
here += 2;

k = strlen(y->name);




Sun Jan 7, 2001 4:48 pm

t.steffen@...
Send Email Send Email

Forward
Message #180 of 261 |
Expand Messages Author Sort by Date

Hi Brad, I'm forwarding you three mails that contain more information (plus a patch) about the sparc classic problem. I hope this helps you. Thomas ... To:...
Thomas Schoepf
schoepf@...
Send Email
Jan 3, 2001
7:40 pm

... [...] ... Somehow I missed one change, here it is. Thomas <t.steffen@...> PS: Keep in mind that I'm not on the list. ... +++...
Thomas Steffen
t.steffen@...
Send Email
Jan 7, 2001
4:48 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help