Thread (6 messages) 6 messages, 3 authors, 2003-06-09

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

flat view

From: Kazunori Miyazawa <hidden>
Date: 2003-06-09 00:49:18

On Mon, 9 Jun 2003 01:47:52 +1000 (EST)
James Morris [off-list ref] wrote:
On Fri, 6 Jun 2003, Kazunori Miyazawa wrote:
quoted
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)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help