- Fix in_cksum for big-endian MIPS: use correct compile-time check.

This commit is contained in:
Oleksandr Tymoshenko 2009-02-08 23:43:36 +00:00
parent 665557a4ec
commit 5defb9db6b

View file

@ -69,7 +69,7 @@ __FBSDID("$FreeBSD$");
}
static const u_int32_t in_masks[] = {
#ifndef _MISEB
#if _BYTE_ORDER == _LITTLE_ENDIAN
/*0 bytes*/ /*1 byte*/ /*2 bytes*/ /*3 bytes*/
0x00000000, 0x000000FF, 0x0000FFFF, 0x00FFFFFF, /* offset 0 */
0x00000000, 0x0000FF00, 0x00FFFF00, 0xFFFFFF00, /* offset 1 */