Skip to contentSkip to conversation

ip_conntrack_get ip_conntrack_put assymetry

DISCUSSION Amin Azez 2 participants 2 messages Jun 29, 2006 – Jul 3, 2006 netfilter

lore
Share & tools
lore

Amin Azez

author
#0 lore raw

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?

Sam

#1 lore raw
Quoted 5 lines · Amin Azez

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.