[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1330417697-2637-1-git-send-email-roy.qing.li@gmail.com>
Date: Tue, 28 Feb 2012 16:28:16 +0800
From: roy.qing.li@...il.com
To: netdev@...r.kernel.org
Subject: [PATCH 1/2] ipv6: fix mss when it is bigger than IPV6_MAXPLEN - sizeof(struct tcphdr)
From: RongQing.Li <roy.qing.li@...il.com>
When mss is bigger than IPV6_MAXPLEN - sizeof(struct tcphdr),
set mss to IPV6_MAXPLEN - sizeof(struct tcphdr), not IPV6_MAXPLEN.
Signed-off-by: RongQing.Li <roy.qing.li@...il.com>
---
net/ipv6/route.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 92be12b..42cc16c 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -1054,7 +1054,7 @@ static unsigned int ip6_default_advmss(const struct dst_entry *dst)
* rely only on pmtu discovery"
*/
if (mtu > IPV6_MAXPLEN - sizeof(struct tcphdr))
- mtu = IPV6_MAXPLEN;
+ mtu = IPV6_MAXPLEN - sizeof(struct tcphdr);
return mtu;
}
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists