Alexey Dobriyan | dfdb8d7 | 2008-10-08 11:35:02 +0200 | [diff] [blame] | 1 | #ifndef __NETNS_CONNTRACK_H |
| 2 | #define __NETNS_CONNTRACK_H |
| 3 | |
Alexey Dobriyan | 63c9a26 | 2008-10-08 11:35:04 +0200 | [diff] [blame] | 4 | #include <linux/list.h> |
Alexey Dobriyan | 49ac871 | 2008-10-08 11:35:03 +0200 | [diff] [blame] | 5 | #include <asm/atomic.h> |
| 6 | |
Alexey Dobriyan | 8025070 | 2008-10-08 11:35:08 +0200 | [diff] [blame] | 7 | struct ctl_table_header; |
Alexey Dobriyan | 6058fa6 | 2008-10-08 11:35:07 +0200 | [diff] [blame] | 8 | struct nf_conntrack_ecache; |
| 9 | |
Alexey Dobriyan | dfdb8d7 | 2008-10-08 11:35:02 +0200 | [diff] [blame] | 10 | struct netns_ct { |
Alexey Dobriyan | 49ac871 | 2008-10-08 11:35:03 +0200 | [diff] [blame] | 11 | atomic_t count; |
Alexey Dobriyan | 9b03f38 | 2008-10-08 11:35:03 +0200 | [diff] [blame] | 12 | unsigned int expect_count; |
Alexey Dobriyan | 400dad3 | 2008-10-08 11:35:03 +0200 | [diff] [blame] | 13 | struct hlist_head *hash; |
Alexey Dobriyan | 9b03f38 | 2008-10-08 11:35:03 +0200 | [diff] [blame] | 14 | struct hlist_head *expect_hash; |
Alexey Dobriyan | 63c9a26 | 2008-10-08 11:35:04 +0200 | [diff] [blame] | 15 | struct hlist_head unconfirmed; |
Alexey Dobriyan | 0d55af8 | 2008-10-08 11:35:07 +0200 | [diff] [blame] | 16 | struct ip_conntrack_stat *stat; |
Alexey Dobriyan | 6058fa6 | 2008-10-08 11:35:07 +0200 | [diff] [blame] | 17 | #ifdef CONFIG_NF_CONNTRACK_EVENTS |
| 18 | struct nf_conntrack_ecache *ecache; |
| 19 | #endif |
Alexey Dobriyan | d716a4d | 2008-10-08 11:35:09 +0200 | [diff] [blame^] | 20 | int sysctl_acct; |
Alexey Dobriyan | c04d055 | 2008-10-08 11:35:08 +0200 | [diff] [blame] | 21 | int sysctl_checksum; |
Alexey Dobriyan | c2a2c7e | 2008-10-08 11:35:08 +0200 | [diff] [blame] | 22 | unsigned int sysctl_log_invalid; /* Log invalid packets */ |
Alexey Dobriyan | 8025070 | 2008-10-08 11:35:08 +0200 | [diff] [blame] | 23 | #ifdef CONFIG_SYSCTL |
| 24 | struct ctl_table_header *sysctl_header; |
Alexey Dobriyan | d716a4d | 2008-10-08 11:35:09 +0200 | [diff] [blame^] | 25 | struct ctl_table_header *acct_sysctl_header; |
Alexey Dobriyan | 8025070 | 2008-10-08 11:35:08 +0200 | [diff] [blame] | 26 | #endif |
Alexey Dobriyan | 400dad3 | 2008-10-08 11:35:03 +0200 | [diff] [blame] | 27 | int hash_vmalloc; |
Alexey Dobriyan | 9b03f38 | 2008-10-08 11:35:03 +0200 | [diff] [blame] | 28 | int expect_vmalloc; |
Alexey Dobriyan | dfdb8d7 | 2008-10-08 11:35:02 +0200 | [diff] [blame] | 29 | }; |
| 30 | #endif |