lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #34019] Bug when use LWIP_NETIF_TX_SINGLE_PBUF


From: wuxinjia
Subject: [lwip-devel] [bug #34019] Bug when use LWIP_NETIF_TX_SINGLE_PBUF
Date: Tue, 16 Aug 2011 02:55:14 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 1.1.4322; InfoPath.2)

URL:
  <http://savannah.nongnu.org/bugs/?34019>

                 Summary: Bug when use LWIP_NETIF_TX_SINGLE_PBUF
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: phoenix_wu
            Submitted on: Tue Aug 16 02:55:13 2011
                Category: TCP
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: 1.4.0

    _______________________________________________________

Details:

when i use LWIP_NETIF_TX_SINGLE_PBUF, tcp_pbuf_prealloc() will malloc MSS
length pbuf.  But in tcp_write, 
space = pcb->mss - (last_unsent->len + unsent_optlen).
In most times, pcb->mss == MSS, but pcb->mss may be negotiated and become less
than MSS.  So Problem appears. I change tcp_pbuf_prealloc() malloc pcb->mss
length pbuf. It seems much better, but sometimes problem (unsent_oversize
mismatch (pcb vs. last_unsent)) still appears.




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?34019>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]