[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #6410] Correlation between TCP MSS and netif MTU
From: |
Marc Chaland |
Subject: |
[lwip-devel] [patch #6410] Correlation between TCP MSS and netif MTU |
Date: |
Thu, 07 Feb 2008 13:35:43 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1 |
URL:
<http://savannah.nongnu.org/patch/?6410>
Summary: Correlation between TCP MSS and netif MTU
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: chaland
Submitted on: jeudi 07.02.2008 à 13:35
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
When client tries to connect to lwip on one interface with a reduced MTU, MSS
is not reduced.
I suggest following change :
into lwipopts.h, add the following define :
#define TCP_MSS_OFFSET 40
into tcp_in.c line 397 (CVS-1.97) :
#ifdef TCP_MSS_OFFSET
u16_t mss;
#endif /* TCP_MSS_OFFSET */
into tcp_in.c line 432 (CVS-1.97) :
#ifdef TCP_MSS_OFFSET
mss = mtu - TCP_MSS_OFFSET;
if ((mss < npcb->mss) && (mss > TCP_MSS_MIN)) {
npcb->mss = mss;
}
#endif /* TCP_MSS_OFFSET */
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?6410>
_______________________________________________
Message posté via/par Savannah
http://savannah.nongnu.org/
- [lwip-devel] [patch #6410] Correlation between TCP MSS and netif MTU,
Marc Chaland <=