From owner-freebsd-net@FreeBSD.ORG Wed Mar 24 21:20:04 2010 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10D8D1065672 for ; Wed, 24 Mar 2010 21:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 01C218FC12 for ; Wed, 24 Mar 2010 21:20:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2OLK3PT094283 for ; Wed, 24 Mar 2010 21:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2OLK3mG094275; Wed, 24 Mar 2010 21:20:03 GMT (envelope-from gnats) Date: Wed, 24 Mar 2010 21:20:03 GMT Message-Id: <201003242120.o2OLK3mG094275@freefall.freebsd.org> To: freebsd-net@FreeBSD.org From: John Baldwin Cc: Subject: Re: kern/144000: [tcp] ignore set TCP_MAXSEG by setsockopt() X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Baldwin List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2010 21:20:04 -0000 The following reply was made to PR kern/144000; it has been noted by GNATS. From: John Baldwin To: Andrey Zonov 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