Allocating and destroying connection-related data
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
Pablo Neira Ayuso
maintainerQuoted 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