blob: 505a51cd8c63f8a9f5b470099df7c8bef2370b6b [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;
Alexey Dobriyan0d55af82008-10-08 11:35:07 +020017 struct ip_conntrack_stat *stat;
Pablo Neira Ayusoa0891aa2009-06-13 12:26:29 +020018 int sysctl_events;
Alexey Dobriyand716a4d2008-10-08 11:35:09 +020019 int sysctl_acct;
Alexey Dobriyanc04d0552008-10-08 11:35:08 +020020 int sysctl_checksum;
Alexey Dobriyanc2a2c7e2008-10-08 11:35:08 +020021 unsigned int sysctl_log_invalid; /* Log invalid packets */
Alexey Dobriyan80250702008-10-08 11:35:08 +020022#ifdef CONFIG_SYSCTL
23 struct ctl_table_header *sysctl_header;
Alexey Dobriyand716a4d2008-10-08 11:35:09 +020024 struct ctl_table_header *acct_sysctl_header;
Pablo Neira Ayusoa0891aa2009-06-13 12:26:29 +020025 struct ctl_table_header *event_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