[PATCH 2.6 2/12]: add sysctl to read out the number of current
connections
Patrick McHardy
kaber at trash.net
Tue Sep 21 05:21:55 CEST 2004
This patch adds a sysctl to read out the number of current connections.
ip_conntrack_count is an atomic_t, but it is read out by proc_dointvec.
I have checked all arches, all use an int, but I'm not sure if it works
on all of them.
ChangeSet at 1.1935.1.2, 2004-09-18 23:27:31+02:00, laforge at netfilter.org
[NETFILTER]: add sysctl to read out the number of current connections
Apparently a lot of scripts use a construct like
"cat /proc/net/ip_conntrack | wc -l"
which has a negative impact on system performance due to all the locking
required.
Signed-off-by: Harald Welte <laforge at netfilter.org>
Signed-off-by: Patrick McHardy <kaber at trash.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 02.diff
Type: text/x-patch
Size: 2560 bytes
Desc: not available
Url : /pipermail/netfilter-devel/attachments/20040921/b2a3dcc1/02.bin
More information about the netfilter-devel
mailing list