[547] in Kerberos-V5-bugs
Re: Another minor bug in v4admind
daemon@ATHENA.MIT.EDU ("Mark W. Eichin")
Thu Jun 30 00:36:36 1994
Date: Thu, 30 Jun 94 00:31:28 EDT
From: eichin@MIT.EDU ("Mark W. Eichin")
To: grossa@SDSC.EDU
Cc: krb5-bugs@MIT.EDU, kerberos@MIT.EDU
In-Reply-To: "[544] in Kerberos-V5-bugs"
>> I'm sorry I don't have a patch for this, but I'm not sure what to
>> use as the test for big/little endian-ness.
One should not *care* which endian-ness with the new macros. On a
big-endian platform, that code should do exactly the same thing as the
replacement MSBFIRST code...
However, I see a typo in the four_bytes version (a few pair of missing
parentheses); try using:
#define four_bytes_vax_to_nets(x) ((((((x[3]<<8)|x[2])<<8)|x[1])<<8)|x[0])
and see if that gets the correct behavior.
_Mark_