ip_conntrack: Make "hashsize" conntrack parameter writable
Subsystems (3)
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 13 lines · Rusty Russell
Quoted 12 lines · Jesper Dangaard Brouer
Hi Rusty (and Harald)
We met at the Netfilter Workshop 2005, where I complained that the conntrack hashsize were statically set at module load time.
Thank you making a kernel patch, which changes this... BUT I cannot make it work! :-(
Am I missing some part of the patch?
Quoted 7 lines
Quoted 2 lines
I cannot find the link to the /proc file system. Should there not be any changes to
ip_conntrack_standalone.c??
/sys/module/ip_conntrack/parameters/hashsizeCheers!
Rusty.
Aha I see, the sysfs filesystem.
I was confused, because the hashsize is already exported as /proc/sys/net/ipv4/netfilter/ip_conntrack_buckets.
It is a bit confusing, that the Netfilter team are changing away from the /proc filesystem, but I don't care, it seems that the sysfs filesystem is a more powerful choice.
The permissions on "/sys/module/ip_conntrack/parameters/hashsize" is set to 600, where the /proc/../ip_conntrack_buckets is readable to all (444). I think we should change the /sys/../hashsize parameter to 644, as it does not make sense as it is readable through /proc.
Hilsen
Jesper Dangaard Brouer
ps. Cc'ing -> lets keep google updated ;-) --
-------------------------------------------------------------------
Cand. scient datalog
Dept. of Computer Science, University of Copenhagen
-------------------------------------------------------------------