From owner-freebsd-net@FreeBSD.ORG Tue Feb 24 05:16:50 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9662E16A4CE for ; Tue, 24 Feb 2004 05:16:50 -0800 (PST) Received: from mailtoaster1.pipeline.ch (mailtoaster1.pipeline.ch [62.48.0.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id C820E43D2D for ; Tue, 24 Feb 2004 05:16:49 -0800 (PST) (envelope-from andre@freebsd.org) Received: (qmail 74905 invoked from network); 24 Feb 2004 13:16:49 -0000 Received: from unknown (HELO freebsd.org) ([62.48.0.53]) (envelope-sender ) by mailtoaster1.pipeline.ch (qmail-ldap-1.03) with SMTP for ; 24 Feb 2004 13:16:49 -0000 Message-ID: <403B4EBA.C8168542@freebsd.org> Date: Tue, 24 Feb 2004 14:16:42 +0100 From: Andre Oppermann X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Gleb Smirnoff References: <20040224080353.GA76272@cell.sick.ru> <403B2423.DABF2E48@freebsd.org> <20040224102113.GB77406@cell.sick.ru> <403B4182.F6BD7101@freebsd.org> <20040224123427.GA78495@cell.sick.ru> <403B47D4.6F783F4F@freebsd.org> <20040224130408.GA78658@cell.sick.ru> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org Subject: Re: rtalloc()/rtfree() problems on CURRENT X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2004 13:16:50 -0000 Gleb Smirnoff wrote: > > On Tue, Feb 24, 2004 at 01:47:16PM +0100, Andre Oppermann wrote: > A> > A> > A> Maybe you do some nasty things to rt here? > A> > A> > > A> > A> > Really, I don't :) Exact code is given at end of the mail. > A> > A> > A> > A> You indeed do some nasty things. > A> > > A> > Please point me at 'em. I'm only reading some values from parent structure. > A> > A> Ah, sorry, forgot that in my last email. The only thing is to use RTFREE(). > A> At first I thought your reassigning of rt is a problem, but you free the > A> correct ro.ro_rt later. > > Thank you! I'll try everything you suggested today night. > > I have one more question if you don't mind: > This code is running on 5.1 and STABLE as well. Is it safe to move > to RTFREE() everywhere? Yes, I think so. Be aware that 5.1 is only a technology preview release and it is lacking in many areas compared to 5.2.1. -- Andre