lwip_bleedingedge

Fork of lwip by mbed official

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Mon Nov 04 09:00:09 2013 +0000
Parent:
12:931deec14b08
Child:
14:3d3ad63396b2
Commit message:
Synchronized with git revision 8e4057efabf71902a57a8e71ad47141e1e2f98c9

Changed in this revision

core/tcp_out.c Show annotated file Show diff for this revision Revisions of this file
--- a/core/tcp_out.c	Tue Sep 10 15:14:39 2013 +0300
+++ b/core/tcp_out.c	Mon Nov 04 09:00:09 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;