lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #7858] Patch for window scaling support for lwip-1.4


From: christian
Subject: [lwip-devel] [patch #7858] Patch for window scaling support for lwip-1.4.0
Date: Fri, 05 Oct 2012 10:35:41 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2 Iceweasel/6.0.2

URL:
  <http://savannah.nongnu.org/patch/?7858>

                 Summary: Patch for window scaling support for lwip-1.4.0
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: xtian
            Submitted on: Fri 05 Oct 2012 10:35:40 AM GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

This patch provides window scaling option on lwip-1.4.0.

It is based on the patch #6537, with some modifications.

We opted for using a macro that can be enabled at compile time to support
window scaling. The macro is LWIP_WND_SCALE. If this macro is set to 1, some
variables in struct tcp_pcb are set to u32_t instead of u16_t, which makes the
support for window scaling easier. In addition, the assert in tcp_recved
function:

LWIP_ASSERT("tcp_recved: len would wrap rcv_wnd\n", len <= 0xffff -
pcb->rcv_wnd ); 

was modified to

LWIP_ASSERT("tcp_recved: len would wrap rcv_wnd\n", len <= 0xffffffffU -
pcb->rcv_wnd );

when LWIP_WND_SCALE is set to 1.

In the patch in #6537 Wim Dumon provided an additional patch to solve a
problem detected in OOSEQ code when out of order packets are recieved. Notice
that the later is not included in this patch, yout might need to include both
patches.






    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 05 Oct 2012 10:35:40 AM GMT  Name: window_scaling.patch  Size: 37kB 
 By: xtian

<http://savannah.nongnu.org/patch/download.php?file_id=26702>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?7858>

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




reply via email to

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