From: Patrick McHardy Subject: Re: ip_conntrack_get ip_conntrack_put assymetry Date: Mon, 03 Jul 2006 20:28:39 +0200 Message-ID: <44A961D7.5030204@trash.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org Return-path: To: Amin Azez In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Amin Azez wrote: > How is it that ip_conntrack_put does an nf_conntrack_put, but > ip_conntrack_get does not do nf_conntrack_get or otherwise increase the > ref count. > > This asymmetry is likely to be confusing, or am I already confused? I don't like it either, a lot of the conntrack code really wants some cleanup. The general inconsisteny in function naming (and names like ip_conntrack_find_get) are not very pretty either.