[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20061206.233749.122048397.davem@davemloft.net>
Date: Wed, 06 Dec 2006 23:37:49 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: kazunori@...azawa.org
Cc: miika@....fi, Diego.Beltrami@...t.fi, herbert@...dor.apana.org.au,
netdev@...r.kernel.org, usagi-core@...ux-ipv6.org
Subject: Re: [PATCH][IPSEC][4/7] inter address family ipsec tunnel
From: Kazunori MIYAZAWA <kazunori@...azawa.org>
Date: Wed, 6 Dec 2006 20:35:37 +0900
> Sorry, I mixed up changes in the patches. I described that [4/7] will add
> "IPv6 over IPv4 IPsec tunnel". However I send a patch for "IPv4 over IPv6"
> as a reply because it includes the discussing item.
> So this patch adds IPv4 over IPv6 IPsec tunnel. It's complicated.
>
> I deleted subustituting NULL for rt->peer and moved atomic_inc stuff
> under the "if" section.
I have applied this patch, thanks for fixing it up.
> BTW, I have a question about descrementing the reference count of
> rt->peer. The reference cound in normal "dst" structure is
> decremented by calling inet_putpeer from ipv4_dst_destroy. But
> xfrm4_dst_destroy does not call inet_putpeer. Where do we decrement
> the count? Should xfrm4_dst_destroy do that?
Indeed, it is a real leak. And yes, I believe that xfrm4_dst_destroy()
should release it. I will make this fix, thank you.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists