diff options
| author | Harald Welte <laforge@netfilter.org> | 2004-09-23 00:34:29 -0700 |
|---|---|---|
| committer | David S. Miller <davem@kernel.bkbits.net> | 2004-09-23 00:34:29 -0700 |
| commit | 6c7dd95fa77ce9545f85d0f708ef6d09f4b55bde (patch) | |
| tree | 21f7b0eed687f5d1fbba074248d10cd6da992424 /include/linux | |
| parent | 2cda28821a831dae6d9bd56cc7e8ee95a7fd181a (diff) | |
[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@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sysctl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index bec509e874de..e55ff44180b8 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h @@ -424,6 +424,7 @@ enum NET_IPV4_NF_CONNTRACK_SCTP_TIMEOUT_SHUTDOWN_SENT=24, NET_IPV4_NF_CONNTRACK_SCTP_TIMEOUT_SHUTDOWN_RECD=25, NET_IPV4_NF_CONNTRACK_SCTP_TIMEOUT_SHUTDOWN_ACK_SENT=26, + NET_IPV4_NF_CONNTRACK_COUNT=27, }; /* /proc/sys/net/ipv6 */ |
