ip_conntrack_max registered twice

Pablo Neira pablo at eurodev.net
Wed Dec 15 21:59:59 CET 2004


Maciej Soltysiak wrote:

> Hi,
>
> I noticed that I have:
> /proc/sys/net/ipv4/netfilter/ip_conntrack_max
> /proc/sys/net/ipv4/ip_conntrack_max
>
> A quick look at net/ipv4/netfilter/ip_conntrack_standalone.c shows
> that we register the same variable (ip_conntrack_max) twice:
>
> In:
> ip_ct_sysctl_table[]:
>        {
>                .ctl_name       = NET_IPV4_NF_CONNTRACK_MAX,
>                .procname       = "ip_conntrack_max",
>                .data           = &ip_conntrack_max,
>                .maxlen         = sizeof(int),
>                .mode           = 0644,
>                .proc_handler   = &proc_dointvec,
>        },
>
> And in ip_ct_netfilter_table[]:
>        {
>                .ctl_name       = NET_IP_CONNTRACK_MAX,
>                .procname       = "ip_conntrack_max",
>                .data           = &ip_conntrack_max,
>                .maxlen         = sizeof(int),
>                .mode           = 0644,
>                .proc_handler   = &proc_dointvec
>        },
>
> Is this for some backward compatibility or is it a needless duplication ?


I asked the same some time ago, and Jozsef told me that it's a backward 
compatibility issue.

--
Pablo



More information about the netfilter-devel mailing list