From owner-freebsd-questions@FreeBSD.ORG Thu Jul 31 07:27:20 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3BDD106566B for ; Thu, 31 Jul 2008 07:27:20 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from smtp.teledomenet.gr (smtp.teledomenet.gr [213.142.128.2]) by mx1.freebsd.org (Postfix) with ESMTP id 9C3918FC1D for ; Thu, 31 Jul 2008 07:27:20 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: by smtp.teledomenet.gr (Postfix, from userid 58) id 8626E142071; Thu, 31 Jul 2008 10:27:19 +0300 (EEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on smtp.teledomenet.gr X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RDNS_NONE autolearn=no version=3.2.5 Received: from iris.teledomenet.local (unknown [192.168.1.71]) by smtp.teledomenet.gr (Postfix) with ESMTP id 9DB3B142027; Thu, 31 Jul 2008 10:26:47 +0300 (EEST) From: Nikos Vassiliadis To: freebsd-questions@freebsd.org Date: Thu, 31 Jul 2008 10:27:37 +0300 User-Agent: KMail/1.9.7 References: <488fe865.x7NyNic2A5pcZPCL%perryh@pluto.rain.com> <6.0.0.22.2.20080730155021.024dd828@mail.computinginnovations.com> <87abfzxbbu.fsf@kobe.laptop> In-Reply-To: <87abfzxbbu.fsf@kobe.laptop> X-NCC-RegID: gr.telehouse MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807311027.37878.nvass@teledomenet.gr> Cc: Giorgos Keramidas , perryh@pluto.rain.com, Derek Ragona Subject: Re: setting the other end's TCP segment size X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2008 07:27:21 -0000 On Thursday 31 July 2008 01:21:25 Giorgos Keramidas wrote: > On Wed, 30 Jul 2008 16:20:06 -0500, Derek Ragona wrote: > > At 11:04 PM 7/29/2008, perryh@pluto.rain.com wrote: > >> > [TCP] splits traffic to 'segments' using its own logic ... > >> > >> Is there a simple way for a FreeBSD system to cause its peer to use a > >> transmit segment size of, say, 640 bytes -- so that the peer will > >> never try to send a packet larger than that? > >> > >> I'm trying to get around a network packet-size problem. In case it > >> matters, the other end is SunOS 4.1.1 on a sun3, and I've been unable > >> to find a way to limit its packet size directly. > > > > Just as an FYI, you might want to do: > > man setsockopt > > ro > > man getsockopt > > > > Each tcp conversation can have it's own size set along with a bunch of > > other params. > > Good point. The TCP_MAXSEG can reduce the maximum segment size for a > single TCP connection to something smaller than the interface MTU :) Just adding that MTU can be set per destination with the help of route(8) and the -mtu modifier.