From owner-freebsd-net Tue Jun 29 7:30:35 1999 Delivered-To: freebsd-net@freebsd.org Received: from mh.acorn.co.uk (mh.acorn.co.uk [136.170.131.2]) by hub.freebsd.org (Postfix) with ESMTP id 4A72314E12 for ; Tue, 29 Jun 1999 07:30:10 -0700 (PDT) (envelope-from kbracey@e-14.com) Received: from kbracey (kbracey [136.170.129.213]) by mh.acorn.co.uk (8.8.6/8.8.6) with SMTP id PAA15405 for ; Tue, 29 Jun 1999 15:30:07 +0100 (BST) Date: Tue, 29 Jun 1999 15:29:58 +0100 From: Kevin Bracey To: freebsd-net@freebsd.org Subject: Re: Old IP addresses hanging around in routes Message-ID: In-Reply-To: X-Organization: Acorn Computers Ltd, Cambridge, United Kingdom X-Mailer: Messenger v1.40f for RISC OS MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Posting-Agent: RISC OS Newsbase 0.61b Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message Julian Elischer wrote: > I cahcked in a set of changes for this back in 1997 > they are in a branch marked "WHISTLE_NET_BRANCH" or something similar. > > use the CVS web interface to check some of teh files (like if.c) > to find the tag and then exctact out the differences.. > I have decided that I will resurect those changes some day and apply the m > to current.. > what they do is: > > reference count a lot more networking structures. > remove all references from routes directly to interfaces (they go via the > ifaddrs only) > > add code to notice when ifaddrs are invalid and remove the reference. > (the ifaddr is freed when it's last reference goes away) > I've had a little look at this. It seems a little severe - if I understand it correctly then any static routes through an interface will be totally deleted if that interface route is deleted. Is this interpretation correct? -- Kevin Bracey, Senior Software Engineer Pace Micro Technology plc Tel: +44 (0) 1223 725228 645 Newmarket Road Fax: +44 (0) 1223 725328 Cambridge, CB5 8PB, United Kingdom WWW: http://www.acorn.co.uk/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message