blob: f4498a62881b0e60d8aace59b99f9a55f70fd0a4 [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>
Alexey Dobriyan49ac8712008-10-08 11:35:03 +02005#include <asm/atomic.h>
6
Alexey Dobriyan80250702008-10-08 11:35:08 +02007struct ctl_table_header;
Alexey Dobriyan6058fa62008-10-08 11:35:07 +02008struct nf_conntrack_ecache;
9
Alexey Dobriyandfdb8d72008-10-08 11:35:02 +020010struct netns_ct {
Alexey Dobriyan49ac8712008-10-08 11:35:03 +020011 atomic_t count;
Alexey Dobriyan9b03f382008-10-08 11:35:03 +020012 unsigned int expect_count;
Alexey Dobriyan400dad32008-10-08 11:35:03 +020013 struct hlist_head *hash;
Alexey Dobriyan9b03f382008-10-08 11:35:03 +020014 struct hlist_head *expect_hash;
Alexey Dobriyan63c9a262008-10-08 11:35:04 +020015 struct hlist_head unconfirmed;
Alexey Dobriyan0d55af82008-10-08 11:35:07 +020016 struct ip_conntrack_stat *stat;
Alexey Dobriyan6058fa62008-10-08 11:35:07 +020017#ifdef CONFIG_NF_CONNTRACK_EVENTS
18 struct nf_conntrack_ecache *ecache;
19#endif
Alexey Dobriyand716a4d2008-10-08 11:35:09 +020020 int sysctl_acct;
Alexey Dobriyanc04d0552008-10-08 11:35:08 +020021 int sysctl_checksum;
Alexey Dobriyanc2a2c7e2008-10-08 11:35:08 +020022 unsigned int sysctl_log_invalid; /* Log invalid packets */
Alexey Dobriyan80250702008-10-08 11:35:08 +020023#ifdef CONFIG_SYSCTL
24 struct ctl_table_header *sysctl_header;
Alexey Dobriyand716a4d2008-10-08 11:35:09 +020025 struct ctl_table_header *acct_sysctl_header;
Alexey Dobriyan80250702008-10-08 11:35:08 +020026#endif
Alexey Dobriyan400dad32008-10-08 11:35:03 +020027 int hash_vmalloc;
Alexey Dobriyan9b03f382008-10-08 11:35:03 +020028 int expect_vmalloc;
Alexey Dobriyandfdb8d72008-10-08 11:35:02 +020029};
30#endif