[ipv6calc] eui64_to_privacy broken for big-endian architectures

Niko Tyni ntyni at iki.fi
Wed Jun 28 20:27:10 CEST 2006

Hi Peter and other ipv6calc list members,

it looks like the ipv6calc RFC3041 (privacy extensions) code is broken
on big-endian systems.

The Debian automatic build daemon logs indicate that the test
'--eui64_to_privacy' is failing on these architectures:

s390 mips sparc hppa m68k

It's working on these:

arm alpha powerpc mipsel ia64 amd64 i386

AFAIK, this looks like a list of big-endian vs. little-endian systems.
In particular, mipsel is just the same as mips but little-endian.

The result on the failed ones is:

Test './ipv6calc --eui64_to_privacy 0123:4567:89ab:cdef 0123456789abcdef' for '4662:bdea:8654:776d 486072ff7074945e'
Result '96de:eee5:308c:8ea7 df277f120cf06be3' doesn't match!

The full build logs can be found at


I haven't investigated this much yet. I can get my hands on a sparc
machine probably tomorrow, so I'm well positioned to test this. I'll get
back to this when I have a patch.

The problem has been there at least since 0.45, so it's not a new
regression. It just wasn't noticed earlier.

I'm CCing 375855-forwarded at bugs.debian.org - please keep the CC when
responding so the information in the Debian bug database stays up to date.

Niko Tyni		ntyni at iki.fi

More information about the ipv6calc mailing list