netdev
[Top] [All Lists]

Re: [PATCH][IPV6] keeping dst refcnt correctly with using xfrm

To: James Morris <jmorris@xxxxxxxxxxxxxxxx>
Subject: Re: [PATCH][IPV6] keeping dst refcnt correctly with using xfrm
From: Kazunori Miyazawa <kazunori@xxxxxxxxxxxx>
Date: Mon, 9 Jun 2003 09:49:18 +0900
Cc: davem@xxxxxxxxxx, kuznet@xxxxxxxxxxxxx, usagi@xxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <Mutt.LNX.4.44.0306090145030.3907-100000@excalibur.intercode.com.au>
References: <20030606144925.29ad2a9f.kazunori@miyazawa.org> <Mutt.LNX.4.44.0306090145030.3907-100000@excalibur.intercode.com.au>
Sender: netdev-bounce@xxxxxxxxxxx
On Mon, 9 Jun 2003 01:47:52 +1000 (EST)
James Morris <jmorris@xxxxxxxxxxxxxxxx> wrote:

> On Fri, 6 Jun 2003, Kazunori Miyazawa wrote:
> 
> > In output functions, dst is changed by xfrm_lookup if there is 
> > any matching policy. Therefore original dst which is held before
> > calling xfrm_lookup will be never released.
> > When xfrm_lookup scceeds and dst is changed, original dst should
> > be release.
> 
> It is released in xfrm_lookup():
> 
>         *dst_p = dst;
>         ip_rt_put(rt);
>         xfrm_pol_put(policy);
>         return 0;
> 
> 

I overlooked it. Thank you. 

--Kazunori Miyazawa (Yokogawa Electric Corporation)




<Prev in Thread] Current Thread [Next in Thread>