[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Networking defect for ARM’bsp intcp_input().
- Date: Thu, 06 Jul 2006 13:26:24 -0500
- From: jtm at smoothsmoothie.com (Jay Monkman)
- Subject: Networking defect for ARM’bsp intcp_input().
ray wrote:
> Hi
> In fact, the code only wrong when ENDIAN is considered
> If change the code :
> #if BYTE_ORDER == LITTLE_ENDIAN
> u_int th_x2:4, /* (unused) */
> th_off:4; /* data offset */
> #endif
> #if BYTE_ORDER == BIG_ENDIAN
> u_int th_off:4, /* data offset */
> th_x2:4; /* (unused) */
> #endif
>
> To:
> u_int th_x2:4, /* (unused) */
> th_off:4; /* data offset */
>
> the code works fine
> ...
> gcc version 3.2.3 (OAR Corporation gcc-3.2.3-20040420/newlib-1.11.0-20030605-4)
This is a problem in newlib. I think it was fixed in newlib-1.13. It looks like
you are using 1.11. If you search the mailing list archives, you'll probably
find more information.