From owner-freebsd-net Fri Jun 23 7: 8:59 2000 Delivered-To: freebsd-net@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 5161B37B9B5 for ; Fri, 23 Jun 2000 07:08:42 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.9.3/1.13) id RAA64917; Fri, 23 Jun 2000 17:08:27 +0300 (EEST) Date: Fri, 23 Jun 2000 17:08:27 +0300 From: Ruslan Ermilov To: Brian Somers Cc: net@FreeBSD.org Subject: Re: "frag-anyways" knob. Message-ID: <20000623170827.A64269@sunbay.com> Mail-Followup-To: Brian Somers , net@FreeBSD.org References: <200006231015.LAA00670@hak.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200006231015.LAA00670@hak.lan.Awfulhak.org>; from brian@Awfulhak.org on Fri, Jun 23, 2000 at 11:15:30AM +0100 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, Jun 23, 2000 at 11:15:30AM +0100, Brian Somers wrote: > [sorry if you get this twice - my laptop crashed horribly] > > > On Thu, Jun 22, 2000 at 08:25:01PM +0100, Brian Somers wrote: > > > 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. > > > > > Would it be enough if tcpmssd(8) could track interface MTU (kernel > > is capable of notifying user processes about MTU changes through a > > routing socket interface as of sys/net/if.c,v 1.83). > > > > usage: tcpmssd [-v] -p port [-i iface | -m mtu] > > > > So, if run as `tcpmssd -p 1234 -i tun0', it will peek the initial > > MTU value on startup and then will monitor routing socket for MTU > > changes. > > That sounds perfect - although I think the pidfile option would be > nice too - for consistency. > I have put an updated version here: http://people.FreeBSD.org/~ru/tcpmssd.tgz This version supports `-i iface' option as described above, and it also automatically creates /var/run/tcpmssd..pid file if run with -i. 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message