From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 2 12:33:33 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D36B10656DF for ; Thu, 2 Apr 2009 12:33:33 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.240]) by mx1.freebsd.org (Postfix) with ESMTP id E389B8FC1C for ; Thu, 2 Apr 2009 12:33:32 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: by an-out-0708.google.com with SMTP id d11so322537and.13 for ; Thu, 02 Apr 2009 05:33:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:subject :date:mime-version:content-type:content-transfer-encoding:x-priority :x-msmail-priority:x-mailer:x-mimeole; bh=2D6hm1yo5mTJg0CE4s1xwIFsZmn9Q+2mBnmpqExFPSE=; b=bnroN4Kup7XABwEwMLpNpIyVIoOsC1G/NrRbdRYP/6BBXF3Ec6wdrhbMka2t5Gn2D1 Ch7XD7s7uPNf1l47gE8SWBcjoVDYgSGhOHl2nVn7wuG0tEaIb+/1tIw5y/hPpeC/KjVx ag+Tn2cJrMOg0S8mtybb0X50AQCYEsD0MdGY4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:subject:date:mime-version:content-type :content-transfer-encoding:x-priority:x-msmail-priority:x-mailer :x-mimeole; b=bReVGGSF1VXvj66Zyo3T/lpQBe0keR7nY+Myj8RXqi6PefC4aPslgnFLRQ8gH8vaY+ T7Bg5MeKVMXWljiHrIxn0adU1Rb+DaTcGD4Cs4greuVtmPgxdKZjr0HTUzxe9it+hQwE kh5Ew3MnirnA9S+4tub5RZsnp7/2+XsxIGCKg= Received: by 10.100.124.6 with SMTP id w6mr8722304anc.107.1238673740013; Thu, 02 Apr 2009 05:02:20 -0700 (PDT) Received: from adnote989 (189-18-124-154.dsl.telesp.net.br [189.18.124.154]) by mx.google.com with ESMTPS id 7sm1496162agb.2.2009.04.02.05.02.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 02 Apr 2009 05:02:19 -0700 (PDT) Message-ID: <3FD46C21A487490FB15B89E890790121@adnote989> From: "Luiz Otavio O Souza" To: Date: Thu, 2 Apr 2009 09:01:59 -0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Mailman-Approved-At: Thu, 02 Apr 2009 12:43:38 +0000 Subject: Setting the mss for socket X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Apr 2009 12:33:34 -0000 Hello hackers, Is there a way to set the mss for a socket ? Like you can do in linux with setsockopt(TCP_MAXSEG) ? So i can set the maximum size of packets (or sort of) from a simple userland program. I've read the code and i cannot find by myself (at least from a 30minute reading) a single point to change this. It looks like it is dynamic calculated with interface/path mtu. Someone has a simple approach to deal with this ? Any ideas ? Thanks in advance, Luiz