Skip to contentSkip to conversation

Allocating and destroying connection-related data

DISCUSSION Nicole 2 participants 2 messages Sep 17, 2012 netfilter

lore
Share & tools
lore

Nicole

author
#0 lore raw

Dear All,

Do you have a tutorial (or example) for how to write a module that allocates and destroys its own small amount of data that can be associated with any connection, including those for which a connection tracker is already used?

Many thanks

Nicole

#1 lore raw
Quoted 6 lines · Nicole

Dear All,

Do you have a tutorial (or example) for how to write a module that allocates and destroys its own small amount of data that can be associated with any connection, including those for which a connection tracker is already used?

There is not, sorry. You'll have to read source code. Check:

net/netfilter/nf_conntrack_extend.c

and for instance on how to create a conntrack extension:

net/netfilter/nf_conntrack_acct.c