Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Mar 2010 21:20:03 GMT
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-net@FreeBSD.org
Subject:   Re: kern/144000: [tcp] ignore set TCP_MAXSEG by setsockopt()
Message-ID:  <201003242120.o2OLK3mG094275@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/144000; it has been noted by GNATS.

From: John Baldwin <jhb@freebsd.org>
To: Andrey Zonov <andrey.zonov@gmail.com>
Cc: bug-followup@freebsd.org
Subject: Re: kern/144000: [tcp] ignore set TCP_MAXSEG by setsockopt()
Date: Wed, 24 Mar 2010 16:24:39 -0400

 On Thursday 25 February 2010 3:49:00 am Andrey Zonov wrote:
 > I have found patch at [1] and adapted for 8.0-p1
 > 
 > jhb, why you not added this patch in HEAD?
 > 
 > 
 > [1] http://people.freebsd.org/~jhb/patches/tcp_maxseg.patch
 
 Actually, can you try this simpler patch instead:
 
 Index: tcp_input.c
 ===================================================================
 --- tcp_input.c (revision 205624)
 +++ tcp_input.c (working copy)
 @@ -3100,12 +3100,10 @@
  #ifdef INET6
         if (isipv6) {
                 maxmtu = tcp_maxmtu6(&inp->inp_inc, mtuflags);
 -               tp->t_maxopd = tp->t_maxseg = V_tcp_v6mssdflt;
         } else
  #endif
         {
                 maxmtu = tcp_maxmtu(&inp->inp_inc, mtuflags);
 -               tp->t_maxopd = tp->t_maxseg = V_tcp_mssdflt;
         }
 
         /*
 
 -- 
 John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003242120.o2OLK3mG094275>