Files
linux-legacy/include/linux
Krzysztof Piotr Oledzki 584015727a netfilter: accounting rework: ct_extend + 64bit counters (v4)
Initially netfilter has had 64bit counters for conntrack-based accounting, but
it was changed in 2.6.14 to save memory. Unfortunately in-kernel 64bit counters are
still required, for example for "connbytes" extension. However, 64bit counters
waste a lot of memory and it was not possible to enable/disable it runtime.

This patch:
 - reimplements accounting with respect to the extension infrastructure,
 - makes one global version of seq_print_acct() instead of two seq_print_counters(),
 - makes it possible to enable it at boot time (for CONFIG_SYSCTL/CONFIG_SYSFS=n),
 - makes it possible to enable/disable it at runtime by sysctl or sysfs,
 - extends counters from 32bit to 64bit,
 - renames ip_conntrack_counter -> nf_conn_counter,
 - enables accounting code unconditionally (no longer depends on CONFIG_NF_CT_ACCT),
 - set initial accounting enable state based on CONFIG_NF_CT_ACCT
 - removes buggy IPCT_COUNTER_FILLING event handling.

If accounting is enabled newly created connections get additional acct extend.
Old connections are not changed as it is not possible to add a ct_extend area
to confirmed conntrack. Accounting is performed for all connections with
acct extend regardless of a current state of "net.netfilter.nf_conntrack_acct".

Signed-off-by: Krzysztof Piotr Oledzki <ole@ans.pl>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-07-21 10:10:58 -07:00
..
…
…
…
…
…
…
2008-06-23 13:02:50 -04:00
…
…
2008-07-14 14:52:56 -04:00
…
2008-07-01 11:28:06 +10:00
…
…
2008-06-19 10:42:17 +10:00
2008-06-19 10:42:17 +10:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-07-03 13:21:14 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-07-04 10:40:05 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-07-04 10:40:09 -07:00
…
…
…
…
…
…
…
2008-07-20 17:12:38 -07:00
…
…
2008-07-11 10:46:50 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-07-08 17:55:41 +02:00
…
…
2008-07-16 23:27:03 +02:00
2008-07-11 15:49:21 +02:00
…
…
2008-07-20 17:12:36 -07:00
…
…
…
…
…
2008-07-20 17:12:36 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-07-16 20:33:48 +02:00
…
…
…
…
…
…
…
…
…
2008-07-18 18:05:19 -07:00
…
…
…
…
2008-07-14 22:49:06 -07:00
…
2008-07-03 17:51:57 +09:00
…
…
2008-07-16 18:02:33 -07:00
…
…
…
2008-06-30 09:25:12 -04:00
…
…
…
…
2008-07-16 23:27:07 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-07-20 17:12:37 -07:00
…
…
…
…
…
…
…
…
…
…
…
2008-07-10 08:17:14 +02:00
…
…
…
…
…
…
…
…
…
…
2008-07-04 10:40:05 -07:00
…
…
2008-07-20 12:42:32 +03:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-07-07 16:26:50 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-07-04 10:40:07 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-07-16 18:02:33 -07:00
…
…
…
…
…
…
…
2008-07-20 17:12:35 -07:00
…
…
…
…
…
2008-07-14 22:49:06 -07:00
2008-07-04 10:40:04 -07:00
2008-07-04 10:40:04 -07:00
…
…
…
…
…
…
2008-06-20 14:05:53 -06:00
2008-07-04 11:26:40 +02:00
…
…
…
…
…
…
…
…
2008-07-20 17:12:37 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-07-20 17:12:34 -07:00
2008-07-20 17:12:38 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…