[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-devel] inet_chksum.c does not compile since latest changes
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-devel] inet_chksum.c does not compile since latest changes |
Date: |
Mon, 11 May 2009 16:03:37 +0200 |
Ouch, seems like I didn't check that sufficiently. Thanks for reporting, I'll
fix it.
Simon
> recent changes in lwip/src/core/ipv4/inet_chksum.c break lwip compilation
>
> the following patch fixes this :
>
> Index: lwip/src/core/ipv4/inet_chksum.c
> ===================================================================
> RCS file: /sources/lwip/lwip/src/core/ipv4/inet_chksum.c,v
> retrieving revision 1.8
> diff -c -u -r1.8 inet_chksum.c
> --- lwip/src/core/ipv4/inet_chksum.c 6 May 2009 17:35:50 -0000 1.8
> +++ lwip/src/core/ipv4/inet_chksum.c 11 May 2009 13:51:37 -0000
> @@ -66,7 +66,7 @@
> /** Like the name says... */
> #if LWIP_PLATFORM_BYTESWAP && (BYTE_ORDER == LITTLE_ENDIAN)
> /* little endian and PLATFORM_BYTESWAP defined */
> -#define SWAP_BYTES_IN_WORD(w) LWIP_PLATFORM_HTONS(x)
> +#define SWAP_BYTES_IN_WORD(w) LWIP_PLATFORM_HTONS(w)
> #else
> /* can't use htons on big endian (or PLATFORM_BYTESWAP not defined)... */
> #define SWAP_BYTES_IN_WORD(w) ((w & 0xff) << 8) | ((w & 0xff00) >> 8)
--
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss
für nur 17,95 Euro/mtl.!*
http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a