1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

- 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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188353

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 */