Date: Thu, 22 Jun 2000 20:25:01 +0100 From: Brian Somers <brian@Awfulhak.org> To: Brian Somers <brian@Awfulhak.org>, Patrick Bihan-Faou <patrick@mindstep.com>, net@FreeBSD.org Subject: Re: "frag-anyways" knob. Message-ID: <200006221925.UAA00485@hak.lan.Awfulhak.org> In-Reply-To: Message from Ruslan Ermilov <ru@sunbay.com> of "Thu, 22 Jun 2000 19:50:07 %2B0300." <20000622195007.C28777@sunbay.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <brian@Awfulhak.org> <brian@[uk.]FreeBSD.org> <http://www.Awfulhak.org> <brian@[uk.]OpenBSD.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006221925.UAA00485>