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. Cheers, -- Niko Tyni ntyni@iki.fi