diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-10-08 05:35:03 -0400 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-10-08 05:35:03 -0400 |
commit | 49ac8713b6d064adf7474080fdccebd7cce76be0 (patch) | |
tree | d74b70b92fbf7741b715a7a1608a1ba5c20df386 /include | |
parent | 5a1fb391d881905e89623d78858d05b248cbc86a (diff) |
netfilter: netns nf_conntrack: per-netns conntrack count
Sysctls and proc files are stubbed to init_net's one. This is temporary.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/netfilter/nf_conntrack.h | 1 | ||||
-rw-r--r-- | include/net/netns/conntrack.h | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/net/netfilter/nf_conntrack.h b/include/net/netfilter/nf_conntrack.h index 2b8d6efecf32..5999c5313d0b 100644 --- a/include/net/netfilter/nf_conntrack.h +++ b/include/net/netfilter/nf_conntrack.h | |||
@@ -288,7 +288,6 @@ static inline int nf_ct_is_untracked(const struct sk_buff *skb) | |||
288 | extern int nf_conntrack_set_hashsize(const char *val, struct kernel_param *kp); | 288 | extern int nf_conntrack_set_hashsize(const char *val, struct kernel_param *kp); |
289 | extern unsigned int nf_conntrack_htable_size; | 289 | extern unsigned int nf_conntrack_htable_size; |
290 | extern int nf_conntrack_checksum; | 290 | extern int nf_conntrack_checksum; |
291 | extern atomic_t nf_conntrack_count; | ||
292 | extern int nf_conntrack_max; | 291 | extern int nf_conntrack_max; |
293 | 292 | ||
294 | DECLARE_PER_CPU(struct ip_conntrack_stat, nf_conntrack_stat); | 293 | DECLARE_PER_CPU(struct ip_conntrack_stat, nf_conntrack_stat); |
diff --git a/include/net/netns/conntrack.h b/include/net/netns/conntrack.h index 82d80b834779..edf84714d7c7 100644 --- a/include/net/netns/conntrack.h +++ b/include/net/netns/conntrack.h | |||
@@ -1,6 +1,9 @@ | |||
1 | #ifndef __NETNS_CONNTRACK_H | 1 | #ifndef __NETNS_CONNTRACK_H |
2 | #define __NETNS_CONNTRACK_H | 2 | #define __NETNS_CONNTRACK_H |
3 | 3 | ||
4 | #include <asm/atomic.h> | ||
5 | |||
4 | struct netns_ct { | 6 | struct netns_ct { |
7 | atomic_t count; | ||
5 | }; | 8 | }; |
6 | #endif | 9 | #endif |