blob: aed23b6c8478aca6bbe582094bb0bb88b2e41036 [file] [log] [blame]
Alexey Dobriyandfdb8d72008-10-08 11:35:02 +02001#ifndef __NETNS_CONNTRACK_H
2#define __NETNS_CONNTRACK_H
3
Alexey Dobriyan63c9a262008-10-08 11:35:04 +02004#include <linux/list.h>
Eric Dumazetea781f12009-03-25 21:05:46 +01005#include <linux/list_nulls.h>
Alexey Dobriyan49ac8712008-10-08 11:35:03 +02006#include <asm/atomic.h>
7
Alexey Dobriyan80250702008-10-08 11:35:08 +02008struct ctl_table_header;
Alexey Dobriyan6058fa62008-10-08 11:35:07 +02009struct nf_conntrack_ecache;
10
Alexey Dobriyandfdb8d72008-10-08 11:35:02 +020011struct netns_ct {
Alexey Dobriyan49ac8712008-10-08 11:35:03 +020012 atomic_t count;
Alexey Dobriyan9b03f382008-10-08 11:35:03 +020013 unsigned int expect_count;
Eric Dumazet5b3501f2010-02-08 11:16:56 -080014 struct kmem_cache *nf_conntrack_cachep;
Eric Dumazetea781f12009-03-25 21:05:46 +010015 struct hlist_nulls_head *hash;
Alexey Dobriyan9b03f382008-10-08 11:35:03 +020016 struct hlist_head *expect_hash;
Eric Dumazetea781f12009-03-25 21:05:46 +010017 struct hlist_nulls_head unconfirmed;
Pablo Neira Ayusodd7669a2009-06-13 12:30:52 +020018 struct hlist_nulls_head dying;
Alexey Dobriyan0d55af82008-10-08 11:35:07 +020019 struct ip_conntrack_stat *stat;
Pablo Neira Ayusoa0891aa2009-06-13 12:26:29 +020020 int sysctl_events;
Pablo Neira Ayusodd7669a2009-06-13 12:30:52 +020021 unsigned int sysctl_events_retry_timeout;
Alexey Dobriyand716a4d2008-10-08 11:35:09 +020022 int sysctl_acct;
Alexey Dobriyanc04d0552008-10-08 11:35:08 +020023 int sysctl_checksum;
Alexey Dobriyanc2a2c7e2008-10-08 11:35:08 +020024 unsigned int sysctl_log_invalid; /* Log invalid packets */
Alexey Dobriyan80250702008-10-08 11:35:08 +020025#ifdef CONFIG_SYSCTL
26 struct ctl_table_header *sysctl_header;
Alexey Dobriyand716a4d2008-10-08 11:35:09 +020027 struct ctl_table_header *acct_sysctl_header;
Pablo Neira Ayusoa0891aa2009-06-13 12:26:29 +020028 struct ctl_table_header *event_sysctl_header;
Alexey Dobriyan80250702008-10-08 11:35:08 +020029#endif
Alexey Dobriyan400dad32008-10-08 11:35:03 +020030 int hash_vmalloc;
Alexey Dobriyan9b03f382008-10-08 11:35:03 +020031 int expect_vmalloc;
Eric Dumazet5b3501f2010-02-08 11:16:56 -080032 char *slabname;
Alexey Dobriyandfdb8d72008-10-08 11:35:02 +020033};
34#endif