blob: ba1ba0c5efd1b5047d9251acee2211043e4d0805 [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 Dumazetea781f12009-03-25 21:05:46 +010014 struct hlist_nulls_head *hash;
Alexey Dobriyan9b03f382008-10-08 11:35:03 +020015 struct hlist_head *expect_hash;
Eric Dumazetea781f12009-03-25 21:05:46 +010016 struct hlist_nulls_head unconfirmed;
Pablo Neira Ayusodd7669a2009-06-13 12:30:52 +020017 struct hlist_nulls_head dying;
Alexey Dobriyan0d55af82008-10-08 11:35:07 +020018 struct ip_conntrack_stat *stat;
Pablo Neira Ayusoa0891aa2009-06-13 12:26:29 +020019 int sysctl_events;
Pablo Neira Ayusodd7669a2009-06-13 12:30:52 +020020 unsigned int sysctl_events_retry_timeout;
Alexey Dobriyand716a4d2008-10-08 11:35:09 +020021 int sysctl_acct;
Alexey Dobriyanc04d0552008-10-08 11:35:08 +020022 int sysctl_checksum;
Alexey Dobriyanc2a2c7e2008-10-08 11:35:08 +020023 unsigned int sysctl_log_invalid; /* Log invalid packets */
Alexey Dobriyan80250702008-10-08 11:35:08 +020024#ifdef CONFIG_SYSCTL
25 struct ctl_table_header *sysctl_header;
Alexey Dobriyand716a4d2008-10-08 11:35:09 +020026 struct ctl_table_header *acct_sysctl_header;
Pablo Neira Ayusoa0891aa2009-06-13 12:26:29 +020027 struct ctl_table_header *event_sysctl_header;
Alexey Dobriyan80250702008-10-08 11:35:08 +020028#endif
Alexey Dobriyan400dad32008-10-08 11:35:03 +020029 int hash_vmalloc;
Alexey Dobriyan9b03f382008-10-08 11:35:03 +020030 int expect_vmalloc;
Alexey Dobriyandfdb8d72008-10-08 11:35:02 +020031};
32#endif