patched lwip with https://github.com/mbedmicro/mbed/commit/8222bde1af2e328e4c58d0f438827f3091e5e0eb

Fork of lwip by mbed official

Files at this revision

API Documentation at this revision

Comitter:
ansond
Date:
Mon Nov 11 18:52:47 2013 +0000
Parent:
12:931deec14b08
Commit message:
https://github.com/mbedmicro/mbed/commit/8222bde1af2e328e4c58d0f438827f3091e5e0eb

Changed in this revision

core/tcp_out.c Show annotated file Show diff for this revision Revisions of this file
diff -r 931deec14b08 -r c3cc9cd76043 core/tcp_out.c
--- 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;