Conntrack statistics

Silviu Popescu silviupopescu1990 at gmail.com
Tue Oct 16 11:44:52 EDT 2012


Hello,

I am currently playing with the netfilter subsystem in a 2.6.7 kernel
and a 2.6.28 kernel.

In the 2.6.28 kernel I can get the number of packets and bytes for a
conntrack using something like:
struct nf_conn_counter *cnt = nf_conn_acct_find(conntrack);

However, this relies on conntrack extensions, which do not exist in 2.6.7.
Does anyone have any idea how I could accomplish the same effect in
2.6.7? I mean, the counters have to be somewhere, I just don't know
where or how to reach them by having the conntrack structure.

All the best,
Silviu Popescu



More information about the Kernelnewbies mailing list