[ipv6calc] Re: eui64_to_privacy broken for big-endian architectures

Peter Bieringer pb at bieringer.de
Fri Jul 7 15:31:52 CEST 2006

Niko Tyni schrieb:
> tags 375855 patch
> thanks
> On Wed, Jun 28, 2006 at 09:27:10PM +0300, Niko Tyni wrote:
>> Hi Peter and other ipv6calc list members,
>> it looks like the ipv6calc RFC3041 (privacy extensions) code is broken
>> on big-endian systems.
> OK, the problem is that the _BIG_ENDIAN macro isn't defined in
> 'sys/types.h' on Linux. It is on Solaris, which is probably
> why this hasn't been noticed earlier. The macro is needed
> by the md5 code.
> I'm attaching a patch that adds the AC_C_BIGENDIAN test to configure.in.
> It also makes md5.c include "config.h" for the result. Finally, it makes
> the test run in the 'ipv6calc' subdirectory exit with an error code if
> there is a failure, so failed tests won't go unnoticed anymore.
> Obviously, autoconf and autoheader need to be re-run after this patch
> is applied.
> I have tested the patch on Debian/x86 and Debian/sparc and on
> Solaris/sparc.

Patch applied to CVS after autoconf/autoheader run.

Can you please recheck, if ok, I would release 0.60.1 next days.

Thank you very much,

Dr. Peter Bieringer                     http://www.bieringer.de/pb/
GPG/PGP Key 0x958F422D                       mailto:pb at bieringer.de
Deep Space 6 Co-Founder and Core Member  http://www.deepspace6.net/
OpenBC                    http://www.openbc.com/hp/Peter_Bieringer/
Personal invitation to OpenBC  http://www.openbc.com/go/invita/3889

More information about the ipv6calc mailing list