]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
use pcb->mss instead of TCP_MSS for preallocate mss-sized pbufs (bug #34019)
authorSimon Goldschmidt <goldsimon@gmx.de>
Sun, 11 Sep 2011 11:13:26 +0000 (13:13 +0200)
committerSimon Goldschmidt <goldsimon@gmx.de>
Sun, 11 Sep 2011 11:13:26 +0000 (13:13 +0200)
CHANGELOG
src/core/tcp_out.c

index aa47e307c0ac8e69cee12cdcc4efa625583b1ec8..dc14b71a774b9bd73d3796c0459127b7521f821d 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -52,6 +52,10 @@ HISTORY
 
  ++ Bugfixes:
 
+  2011-09-11: Simon Goldschmidt
+  * tcp_out.c: use pcb->mss instead of TCP_MSS for preallocate mss-sized pbufs
+    (bug #34019)
+
   2011-09-09: Simon Goldschmidt
   * udp.c: fixed bug #34072: UDP broadcast is received from wrong UDP pcb if
     udp port matches
index db9e115729763ff2c9077048e748168f0960371d..2b1319c5c0d2cdb29ed655d457c2fb875016a707 100644 (file)
@@ -232,7 +232,7 @@ tcp_pbuf_prealloc(pbuf_layer layer, u16_t length, u16_t max_length,
   LWIP_UNUSED_ARG(apiflags);
   LWIP_UNUSED_ARG(first_seg);
   /* always create MSS-sized pbufs */
-  alloc = TCP_MSS;
+  alloc = pcb->mss;
 #else /* LWIP_NETIF_TX_SINGLE_PBUF */
   if (length < max_length) {
     /* Should we allocate an oversized pbuf, or just the minimum