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

Andrey Zonov andrey.zonov at gmail.com
Fri Mar 26 22:00:14 UTC 2010


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

From: Andrey Zonov <andrey.zonov at gmail.com>
To: John Baldwin <jhb at freebsd.org>
Cc: bug-followup at freebsd.org
Subject: Re: kern/144000: [tcp] ignore set TCP_MAXSEG by setsockopt()
Date: Sat, 27 Mar 2010 00:59:19 +0300

 For 7/8-stable not helped me.
 
 John Baldwin ?????:
 > 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;
 >         }
 >
 >         /*
 >
 >   
 
 -- 
 Andrey Zonov
 


More information about the freebsd-net mailing list