From owner-freebsd-net Thu Dec 7 11: 1:22 2000 From owner-freebsd-net@FreeBSD.ORG Thu Dec 7 11:01:18 2000 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mail.interware.hu (mail.interware.hu [195.70.32.130]) by hub.freebsd.org (Postfix) with ESMTP id B67A037B400 for ; Thu, 7 Dec 2000 11:01:17 -0800 (PST) Received: from luanda-33.budapest.interware.hu ([195.70.51.33] helo=elischer.org) by mail.interware.hu with esmtp (Exim 3.16 #1 (Debian)) id 1446I7-00054u-00; Thu, 07 Dec 2000 20:01:15 +0100 Sender: julian@FreeBSD.ORG Message-ID: <3A2FDE62.9E7C83CB@elischer.org> Date: Thu, 07 Dec 2000 11:00:50 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Patrick Bihan-Faou Cc: freebsd-net@freebsd.org Subject: Re: Problem with PPP, tcpmssd and routing socket messages References: Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Patrick Bihan-Faou wrote: > > Hi, > > I am playing around with tcpmssd and an ADSL link. > I use tcpmssd with the "-i" option to indicate which interface it should > obtain the MTU information from. With this option, tcpmssd starts listening > to the routing socket and updates its knowledge of the MTU based on the > information received from the routing socket. ppp now has tcpmssd build in (in at least one version... check with brian@freebsd.org) > > The problem is that tcpmssd is started before the ppp negotiation is > finished, so the initial MTU information is "incorrect" (1500). When the PPP > negotiation is done, the MTU for the tun0 interface is updated to the > correct value (1492) (as shown in ifconfig), but tcpmssd never receives any > notification of that fact. > > The only routing update related to the tun0 interface that is received by > tcpmssd is the "NEWADDR" message indicating the negotiated IP address, I do > not see any IFINFO messages (which are the ones used for the MTU updates). > > If I update the MTU manually (using ifconfig), everything works fine: > tcpmssd receives the RTM_IFINFO messages and the new MTU is used. > > Am I missing something ? Is the routing socket supposed to be "reliable" or > can some messages get lost ? Does the fact that multiple processes are > listening on the routing socket (natd etc.) changes the behaviour ? > > I am a bit lost here, I looked at the ppp code and the kernel code that does > the MTU updates and the way I understand it, there should always be a > routing message generated, however I can not see it anywhere... > > Patrick. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000 ---> X_.---._/ presently in: Budapest v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message