From owner-freebsd-net Sat Dec 9 12:48:27 2000 From owner-freebsd-net@FreeBSD.ORG Sat Dec 9 12:48:25 2000 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id C3BAB37B400; Sat, 9 Dec 2000 12:48:23 -0800 (PST) Received: from hak.lan.Awfulhak.org (root@hak.lan.awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.1/8.11.1) with ESMTP id eB9KkKH09748; Sat, 9 Dec 2000 20:46:20 GMT (envelope-from brian@lan.awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.1/8.11.1) with ESMTP id eB9KnQl54447; Sat, 9 Dec 2000 20:49:26 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200012092049.eB9KnQl54447@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: "Patrick Bihan-Faou" Cc: "Ruslan Ermilov" , freebsd-net@FreeBSD.ORG, "Brian Somers" , brian@Awfulhak.org Subject: Re: Problem with PPP, tcpmssd and routing socket messages In-Reply-To: Message from "Patrick Bihan-Faou" of "Fri, 08 Dec 2000 13:02:56 EST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 09 Dec 2000 20:49:26 +0000 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Hi Ruslan, > > > > > I do not know what happens here, though that's me who originally added > > the support for MTU change reports through route(4) socket: > > > > RCS file: /home/ncvs/src/sys/net/if.c,v > > Working file: if.c > > head: 1.95 > > branch: > > locks: strict > > access list: > > keyword substitution: kv > > total revisions: 116; selected revisions: 1 > > description: > > ---------------------------- > > revision 1.83 > > date: 2000/01/24 08:53:39; author: ru; state: Exp; lines: +4 -2 > > Notify user processes about interface's MTU change. > > Reviewed by: wollman, freebsd-net > > ==================================================================== > > > > Probably, if_tun.c needs a similar functionality added. > > Sorry, I can't investigate more at this time... > > I would suggest you to communicate with Brian Somers. > > > > > I've looked in if.c already. Isn't the code you did called for all interface > related IOCTLs ? Namely if I do a "ioctl(s, SIOCSIFMTU, &ifr)", it should be > first handled by if.c then dispatched to if_tun.c right ? So that means that > in all cases the RTM_IFINFO message should be sent. > > The funny thing is that if I do a ifconfig tun0 mtu 1333, I see the proper > RTM_IFINFO messages... ppp sets the interface mtu using TUNSIFINFO rather than SIOCSIFMTU. See src/usr.sbin/ppp/tun.c. > Patrick. -- 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