kern/144000: [tcp] ignore set TCP_MAXSEG by setsockopt()

John Baldwin jhb at freebsd.org
Wed Mar 24 21:20:04 UTC 2010


The following reply was made to PR kern/144000; it has been noted by GNATS.

From: John Baldwin <jhb at freebsd.org>
To: Andrey Zonov <andrey.zonov at gmail.com>
Cc: bug-followup at 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


More information about the freebsd-net mailing list