Question about reference count of expectations in 2.6.14 tree

Harald Welte laforge at netfilter.org
Thu Aug 11 15:35:45 CEST 2005


On Wed, Aug 10, 2005 at 10:11:49AM +0900, Yasuyuki KOZAKAI wrote:
> 
> # Well, the mail I sent yesterday seems not to reach list, so I resent it.
> # Sorry if you have already received same mail.

clamav has some problems at the listserver, so the list was stuck for
some time :(

> In 2.6.14 tree, ip_conntrack_expect_insert() increments the reference
> count of expectations twice. I understand that once is for timer.
> What is next incrementing for ? expectation list ?

Good question.  To me it looks like a bug introduced when merging
Rusty's conntrack-refcounting patch and the original ctnetlink code.

If nobody objects, I'll remove the second atomic_inc() line from that
function.

-- 
- Harald Welte <laforge at netfilter.org>                 http://netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /pipermail/netfilter-devel/attachments/20050811/96cf3274/attachment.bin


More information about the netfilter-devel mailing list