ip_conntrack_max registered twice

Maciej Soltysiak solt at dns.toxicfilms.tv
Wed Dec 15 21:53:36 CET 2004


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 ?

Regards,
Maciej




More information about the netfilter-devel mailing list