From owner-freebsd-net Thu Jun 22 13:41:13 2000 Delivered-To: freebsd-net@freebsd.org Received: from Awfulhak.org (tun.AwfulHak.org [194.242.139.173]) by hub.freebsd.org (Postfix) with ESMTP id DA53737B7B1 for ; Thu, 22 Jun 2000 13:41:08 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.awfulhak.org [172.16.0.12]) by Awfulhak.org (8.9.3/8.9.3) with ESMTP id VAA37139; Thu, 22 Jun 2000 21:36:17 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id UAA00485; Thu, 22 Jun 2000 20:25:02 +0100 (BST) (envelope-from brian@Awfulhak.org) Message-Id: <200006221925.UAA00485@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Brian Somers , Patrick Bihan-Faou , net@FreeBSD.org Subject: Re: "frag-anyways" knob. In-Reply-To: Message from Ruslan Ermilov of "Thu, 22 Jun 2000 19:50:07 +0300." <20000622195007.C28777@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 22 Jun 2000 20:25:01 +0100 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This looks good. In the PPPoE case, we need to be able to bring the program up and down based on any new MTU values negotiated by ppp(8). This could be done if tcpmssd had a ``create a pidfile'' option, where ppp.linkup could run ``tcpmssd -M IFMTU -P tcpmssd.INTERFACE.pid'' and ppp.linkdown could run ``kill `cat tcpmssd.INTERFACE.pid`''. Ppp would also need to expand IFMTU in command_Expand() in command.c. Does this make sense ? The only alternative I see is to implement this stuff in libalias and have tcpmssd use libalias. Cheers. > On Wed, Jun 21, 2000 at 03:16:56PM +0100, Brian Somers wrote: > > > > I'd tend to agree that a divert(4) daemon would be a far cleaner > > > > solution. > > > > > > > If community wishes I would probably go over it and implement this as > > > a divert(4) daemon. > > > > Cool ! > > > Here is a standalone daemon which "corrects" the MSS option for outgoing > TCP SYN packets based on the supplied MTU value. If run with -v it will > stay attached to its controlling terminal and show the changes made: > > : Script started on Thu Jun 22 19:36:16 2000 > : perl# ipfw add 100 divert 1234 tcp from any to any out via rl0 setup > : 00100 divert 1234 tcp from any to any out xmit rl0 setup > : perl# /usr/local/sbin/tcpmssd -p 1234 -m 1492 -v > : MSS: 1460 -> 1452 > : ^C > : perl# exit > : Script done on Thu Jun 22 19:37:03 2000 > > > Cheers, > -- > Ruslan Ermilov Oracle Developer/DBA, > ru@sunbay.com Sunbay Software AG, > ru@FreeBSD.org FreeBSD committer, > +380.652.512.251 Simferopol, Ukraine > > http://www.FreeBSD.org The Power To Serve > http://www.oracle.com Enabling The Information Age -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message