From owner-freebsd-net@FreeBSD.ORG Fri Mar 4 16:06:05 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88C7316A4CE for ; Fri, 4 Mar 2005 16:06:05 +0000 (GMT) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5068143D2D for ; Fri, 4 Mar 2005 16:06:04 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received-SPF: pass (mp2.macomnet.net: domain of maxim@macomnet.ru designates 127.0.0.1 as permitted sender) receiver=mp2.macomnet.net; client_ip=127.0.0.1; envelope-from=maxim@macomnet.ru; Received: from localhost (localhost [127.0.0.1]) by mp2.macomnet.net (8.12.11/8.12.11) with ESMTP id j24G633e023310; Fri, 4 Mar 2005 19:06:03 +0300 (MSK) (envelope-from maxim@macomnet.ru) Date: Fri, 4 Mar 2005 19:06:03 +0300 (MSK) From: Maxim Konovalov To: lbland In-Reply-To: <69ec4799a574aeae723c687c3c2db15f@vvi.com> Message-ID: <20050304190529.A23172@mp2.macomnet.net> References: <69ec4799a574aeae723c687c3c2db15f@vvi.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org Subject: Re: TCP window scale option setting? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Mar 2005 16:06:05 -0000 On Fri, 4 Mar 2005, 08:47-0500, lbland wrote: > hi- > > In section 2.5 of the Stevens book it says "we wil see how to effect this > [window scale] option with SO_RCVBUF socket option (Section 7.5)". > > But, when I get to Section 7.5 it doesn't say anything about it that I can > find. I searched the whole book, and then googled and then grep'd the header > files to hack it. I see some related macros, but nothing definitive. I can't > find enough to figure it out. It seems I can use setsockopt() to implicitly > maybe or maybe not define it, but then I have no way of checking to make sure > it stuck during the initial negotiation. > > How do I get the current TCP window scale setting? > > How do I set the TCP window scale setting? man 4 tcp, sysctl net.inet.tcp.rfc1323 -- Maxim Konovalov