|
@@ -322,9 +322,6 @@ static void nf_conntrack_standalone_fini_proc(struct net *net)
|
|
|
|
|
|
/* Sysctl support */
|
|
|
|
|
|
-int nf_conntrack_checksum __read_mostly = 1;
|
|
|
-EXPORT_SYMBOL_GPL(nf_conntrack_checksum);
|
|
|
-
|
|
|
#ifdef CONFIG_SYSCTL
|
|
|
/* Log invalid packets of a given protocol */
|
|
|
static int log_invalid_proto_min = 0;
|
|
@@ -360,7 +357,7 @@ static ctl_table nf_ct_sysctl_table[] = {
|
|
|
{
|
|
|
.ctl_name = NET_NF_CONNTRACK_CHECKSUM,
|
|
|
.procname = "nf_conntrack_checksum",
|
|
|
- .data = &nf_conntrack_checksum,
|
|
|
+ .data = &init_net.ct.sysctl_checksum,
|
|
|
.maxlen = sizeof(unsigned int),
|
|
|
.mode = 0644,
|
|
|
.proc_handler = &proc_dointvec,
|
|
@@ -425,6 +422,7 @@ static int nf_conntrack_standalone_init_sysctl(struct net *net)
|
|
|
goto out_kmemdup;
|
|
|
|
|
|
table[1].data = &net->ct.count;
|
|
|
+ table[3].data = &net->ct.sysctl_checksum;
|
|
|
|
|
|
net->ct.sysctl_header = register_net_sysctl_table(net,
|
|
|
nf_net_netfilter_sysctl_path, table);
|
|
@@ -474,6 +472,7 @@ static int nf_conntrack_net_init(struct net *net)
|
|
|
ret = nf_conntrack_standalone_init_proc(net);
|
|
|
if (ret < 0)
|
|
|
goto out_proc;
|
|
|
+ net->ct.sysctl_checksum = 1;
|
|
|
ret = nf_conntrack_standalone_init_sysctl(net);
|
|
|
if (ret < 0)
|
|
|
goto out_sysctl;
|