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> |
Eric Dumazet | ea781f1 | 2009-03-25 21:05:46 +0100 | [diff] [blame] | 5 | #include <linux/list_nulls.h> |
Alexey Dobriyan | 49ac871 | 2008-10-08 11:35:03 +0200 | [diff] [blame] | 6 | #include <asm/atomic.h> |
| 7 | |
Alexey Dobriyan | 8025070 | 2008-10-08 11:35:08 +0200 | [diff] [blame] | 8 | struct ctl_table_header; |
Alexey Dobriyan | 6058fa6 | 2008-10-08 11:35:07 +0200 | [diff] [blame] | 9 | struct nf_conntrack_ecache; |
| 10 | |
Alexey Dobriyan | dfdb8d7 | 2008-10-08 11:35:02 +0200 | [diff] [blame] | 11 | struct netns_ct { |
Alexey Dobriyan | 49ac871 | 2008-10-08 11:35:03 +0200 | [diff] [blame] | 12 | atomic_t count; |
Alexey Dobriyan | 9b03f38 | 2008-10-08 11:35:03 +0200 | [diff] [blame] | 13 | unsigned int expect_count; |
Eric Dumazet | ea781f1 | 2009-03-25 21:05:46 +0100 | [diff] [blame] | 14 | struct hlist_nulls_head *hash; |
Alexey Dobriyan | 9b03f38 | 2008-10-08 11:35:03 +0200 | [diff] [blame] | 15 | struct hlist_head *expect_hash; |
Eric Dumazet | ea781f1 | 2009-03-25 21:05:46 +0100 | [diff] [blame] | 16 | struct hlist_nulls_head unconfirmed; |
Pablo Neira Ayuso | dd7669a | 2009-06-13 12:30:52 +0200 | [diff] [blame^] | 17 | struct hlist_nulls_head dying; |
Alexey Dobriyan | 0d55af8 | 2008-10-08 11:35:07 +0200 | [diff] [blame] | 18 | struct ip_conntrack_stat *stat; |
Pablo Neira Ayuso | a0891aa | 2009-06-13 12:26:29 +0200 | [diff] [blame] | 19 | int sysctl_events; |
Pablo Neira Ayuso | dd7669a | 2009-06-13 12:30:52 +0200 | [diff] [blame^] | 20 | unsigned int sysctl_events_retry_timeout; |
Alexey Dobriyan | d716a4d | 2008-10-08 11:35:09 +0200 | [diff] [blame] | 21 | int sysctl_acct; |
Alexey Dobriyan | c04d055 | 2008-10-08 11:35:08 +0200 | [diff] [blame] | 22 | int sysctl_checksum; |
Alexey Dobriyan | c2a2c7e | 2008-10-08 11:35:08 +0200 | [diff] [blame] | 23 | unsigned int sysctl_log_invalid; /* Log invalid packets */ |
Alexey Dobriyan | 8025070 | 2008-10-08 11:35:08 +0200 | [diff] [blame] | 24 | #ifdef CONFIG_SYSCTL |
| 25 | struct ctl_table_header *sysctl_header; |
Alexey Dobriyan | d716a4d | 2008-10-08 11:35:09 +0200 | [diff] [blame] | 26 | struct ctl_table_header *acct_sysctl_header; |
Pablo Neira Ayuso | a0891aa | 2009-06-13 12:26:29 +0200 | [diff] [blame] | 27 | struct ctl_table_header *event_sysctl_header; |
Alexey Dobriyan | 8025070 | 2008-10-08 11:35:08 +0200 | [diff] [blame] | 28 | #endif |
Alexey Dobriyan | 400dad3 | 2008-10-08 11:35:03 +0200 | [diff] [blame] | 29 | int hash_vmalloc; |
Alexey Dobriyan | 9b03f38 | 2008-10-08 11:35:03 +0200 | [diff] [blame] | 30 | int expect_vmalloc; |
Alexey Dobriyan | dfdb8d7 | 2008-10-08 11:35:02 +0200 | [diff] [blame] | 31 | }; |
| 32 | #endif |