Rick Jones <[EMAIL PROTECTED]> wrote: > > Endianness often makes my head spin, so please be kind - are the addresses > being > converted to little endian before the hash (ntohl as it were) or is it just > happening as a consequence? If the former, why the conversion?
When you load a 32-bit integer from memory into a register, it is done with the default endianness of the box. So on little-endian machines, it gets loaded as little-endian before the hash is taken. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html