|
@@ -455,7 +455,7 @@ out:
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(nf_ct_expect_related_report);
|
|
|
|
|
|
-#ifdef CONFIG_PROC_FS
|
|
|
+#ifdef CONFIG_NF_CONNTRACK_PROCFS
|
|
|
struct ct_expect_iter_state {
|
|
|
struct seq_net_private p;
|
|
|
unsigned int bucket;
|
|
@@ -583,25 +583,25 @@ static const struct file_operations exp_file_ops = {
|
|
|
.llseek = seq_lseek,
|
|
|
.release = seq_release_net,
|
|
|
};
|
|
|
-#endif /* CONFIG_PROC_FS */
|
|
|
+#endif /* CONFIG_NF_CONNTRACK_PROCFS */
|
|
|
|
|
|
static int exp_proc_init(struct net *net)
|
|
|
{
|
|
|
-#ifdef CONFIG_PROC_FS
|
|
|
+#ifdef CONFIG_NF_CONNTRACK_PROCFS
|
|
|
struct proc_dir_entry *proc;
|
|
|
|
|
|
proc = proc_net_fops_create(net, "nf_conntrack_expect", 0440, &exp_file_ops);
|
|
|
if (!proc)
|
|
|
return -ENOMEM;
|
|
|
-#endif /* CONFIG_PROC_FS */
|
|
|
+#endif /* CONFIG_NF_CONNTRACK_PROCFS */
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
static void exp_proc_remove(struct net *net)
|
|
|
{
|
|
|
-#ifdef CONFIG_PROC_FS
|
|
|
+#ifdef CONFIG_NF_CONNTRACK_PROCFS
|
|
|
proc_net_remove(net, "nf_conntrack_expect");
|
|
|
-#endif /* CONFIG_PROC_FS */
|
|
|
+#endif /* CONFIG_NF_CONNTRACK_PROCFS */
|
|
|
}
|
|
|
|
|
|
module_param_named(expect_hashsize, nf_ct_expect_hsize, uint, 0400);
|