DORMANTno replies

[PATCH] IPV6: fix a mistake in ipv6_advmss() conversion

From: YOSHIFUJI Hideaki / 吉藤英明 <hidden>
Date: 2003-07-02 17:55:29

Hello.

Sorry, I introduced a bug in ipv6_advmss()
while converting advmss calculation to inline function.
This patch fixes the bug.

Index: linux-2.5/net/ipv6/route.c
===================================================================
RCS file: /home/cvs/linux-2.5/net/ipv6/route.c,v
retrieving revision 1.43
diff -u -r1.43 route.c
--- linux-2.5/net/ipv6/route.c	28 Jun 2003 03:58:20 -0000	1.43
+++ linux-2.5/net/ipv6/route.c	2 Jul 2003 16:25:04 -0000
@@ -602,6 +602,8 @@
 
 static inline unsigned int ipv6_advmss(unsigned int mtu)
 {
+	mtu -= sizeof(struct ipv6hdr) + sizeof(struct tcphdr);
+
 	if (mtu < ip6_rt_min_advmss)
 		mtu = ip6_rt_min_advmss;
 
-- 
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help