Networking defect for ARM’bsp intcp_input().
Jay Monkman
jtm at smoothsmoothie.com
Thu Jul 6 18:26:24 UTC 2006
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.
More information about the users
mailing list