patched lwip with https://github.com/mbedmicro/mbed/commit/8222bde1af2e328e4c58d0f438827f3091e5e0eb
Fork of lwip by
Diff: core/tcp_out.c
- Revision:
- 14:c3cc9cd76043
- Parent:
- 0:51ac1d130fd4
--- a/core/tcp_out.c Tue Sep 10 15:14:39 2013 +0300 +++ b/core/tcp_out.c Mon Nov 11 18:52:47 2013 +0000 @@ -646,6 +646,9 @@ last_unsent->len += concat_p->tot_len; #if TCP_CHECKSUM_ON_COPY if (concat_chksummed) { + if (concat_chksum_swapped) { + concat_chksum = SWAP_BYTES_IN_WORD(concat_chksum); + } tcp_seg_add_chksum(concat_chksum, concat_chksummed, &last_unsent->chksum, &last_unsent->chksum_swapped); last_unsent->flags |= TF_SEG_DATA_CHECKSUMMED;