From: Tim Gardner Date: Fri, 25 Jun 2010 12:44:07 +0000 (+0200) Subject: netfilter: xt_connbytes: Force CT accounting to be enabled X-Git-Tag: v2.6.36-rc1~571^2~374^2~4 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8756201ba4189bca3ee1a6ec4e290f467ee09ab;p=pandora-kernel.git netfilter: xt_connbytes: Force CT accounting to be enabled Check at rule install time that CT accounting is enabled. Force it to be enabled if not while also emitting a warning since this is not the default state. This is in preparation for deprecating CONFIG_NF_CT_ACCT upon which CONFIG_NETFILTER_XT_MATCH_CONNBYTES depended being set. Added 2 CT accounting support functions: nf_ct_acct_enabled() - Get CT accounting state. nf_ct_set_acct() - Enable/disable CT accountuing. Signed-off-by: Tim Gardner Acked-by: Jan Engelhardt Signed-off-by: Patrick McHardy --- Reading git-diff-tree failed