From mboxrd@z Thu Jan 1 00:00:00 1970 From: Evgeniy Polyakov Subject: Re: How to find I/F to destination Date: Fri, 4 May 2007 17:29:34 +0400 Message-ID: <20070504132934.GD2291@2ka.mipt.ru> References: <20070504131657.GA2291@2ka.mipt.ru> <20070504125438.GA5439@2ka.mipt.ru> <5484.1178282928@redhat.com> <5910.1178284095@redhat.com> <7884.1178285089@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Cc: netdev@vger.kernel.org, Patrick McHardy To: David Howells Return-path: Received: from relay.2ka.mipt.ru ([194.85.82.65]:50903 "EHLO 2ka.mipt.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755191AbXEDN3s (ORCPT ); Fri, 4 May 2007 09:29:48 -0400 Content-Disposition: inline In-Reply-To: <7884.1178285089@redhat.com> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Fri, May 04, 2007 at 02:24:49PM +0100, David Howells (dhowells@redhat.com) wrote: > Evgeniy Polyakov wrote: > > > > Should route_get_raw() release the rtable if gets back? > > > > Yes, dst entry should be released when not used anymore. > > I meant the rtable returned by __ip_route_output_key(), not the dst. That is the same, dst is dereferenced as rtable. Cloned dst is returned, so it must be put back at the ned of the usage. > David -- Evgeniy Polyakov