blob: 7a911eca0f18b4a751b3410b75223080d5da4dbe [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>
Arun Sharma600634972011-07-26 16:09:06 -07006#include <linux/atomic.h>
Alexey Dobriyan49ac8712008-10-08 11:35:03 +02007
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;
Patrick McHardyd696c7b2010-02-08 11:18:07 -080014 unsigned int htable_size;
Eric Dumazet5b3501f2010-02-08 11:16:56 -080015 struct kmem_cache *nf_conntrack_cachep;
Eric Dumazetea781f12009-03-25 21:05:46 +010016 struct hlist_nulls_head *hash;
Alexey Dobriyan9b03f382008-10-08 11:35:03 +020017 struct hlist_head *expect_hash;
Eric Dumazetea781f12009-03-25 21:05:46 +010018 struct hlist_nulls_head unconfirmed;
Pablo Neira Ayusodd7669a2009-06-13 12:30:52 +020019 struct hlist_nulls_head dying;
Tejun Heo7d720c32010-02-16 15:20:26 +000020 struct ip_conntrack_stat __percpu *stat;
Pablo Neira Ayuso70e99422011-11-22 00:16:51 +010021 struct nf_ct_event_notifier __rcu *nf_conntrack_event_cb;
22 struct nf_exp_event_notifier __rcu *nf_expect_event_cb;
Pablo Neira Ayusoa0891aa2009-06-13 12:26:29 +020023 int sysctl_events;
Pablo Neira Ayusodd7669a2009-06-13 12:30:52 +020024 unsigned int sysctl_events_retry_timeout;
Alexey Dobriyand716a4d2008-10-08 11:35:09 +020025 int sysctl_acct;
Pablo Neira Ayusoa992ca22011-01-19 16:00:07 +010026 int sysctl_tstamp;
Alexey Dobriyanc04d0552008-10-08 11:35:08 +020027 int sysctl_checksum;
Alexey Dobriyanc2a2c7e2008-10-08 11:35:08 +020028 unsigned int sysctl_log_invalid; /* Log invalid packets */
Alexey Dobriyan80250702008-10-08 11:35:08 +020029#ifdef CONFIG_SYSCTL
30 struct ctl_table_header *sysctl_header;
Alexey Dobriyand716a4d2008-10-08 11:35:09 +020031 struct ctl_table_header *acct_sysctl_header;
Pablo Neira Ayusoa992ca22011-01-19 16:00:07 +010032 struct ctl_table_header *tstamp_sysctl_header;
Pablo Neira Ayusoa0891aa2009-06-13 12:26:29 +020033 struct ctl_table_header *event_sysctl_header;
Alexey Dobriyan80250702008-10-08 11:35:08 +020034#endif
Eric Dumazet5b3501f2010-02-08 11:16:56 -080035 char *slabname;
Alexey Dobriyandfdb8d72008-10-08 11:35:02 +020036};
37#endif