2008-10-08 17:35:02 +08:00
|
|
|
#ifndef __NETNS_CONNTRACK_H
|
|
|
|
#define __NETNS_CONNTRACK_H
|
|
|
|
|
2008-10-08 17:35:04 +08:00
|
|
|
#include <linux/list.h>
|
2009-03-26 04:05:46 +08:00
|
|
|
#include <linux/list_nulls.h>
|
2008-10-08 17:35:03 +08:00
|
|
|
#include <asm/atomic.h>
|
|
|
|
|
2008-10-08 17:35:08 +08:00
|
|
|
struct ctl_table_header;
|
2008-10-08 17:35:07 +08:00
|
|
|
struct nf_conntrack_ecache;
|
|
|
|
|
2008-10-08 17:35:02 +08:00
|
|
|
struct netns_ct {
|
2008-10-08 17:35:03 +08:00
|
|
|
atomic_t count;
|
2008-10-08 17:35:03 +08:00
|
|
|
unsigned int expect_count;
|
2009-03-26 04:05:46 +08:00
|
|
|
struct hlist_nulls_head *hash;
|
2008-10-08 17:35:03 +08:00
|
|
|
struct hlist_head *expect_hash;
|
2009-03-26 04:05:46 +08:00
|
|
|
struct hlist_nulls_head unconfirmed;
|
2008-10-08 17:35:07 +08:00
|
|
|
struct ip_conntrack_stat *stat;
|
2009-06-13 18:26:29 +08:00
|
|
|
int sysctl_events;
|
2008-10-08 17:35:09 +08:00
|
|
|
int sysctl_acct;
|
2008-10-08 17:35:08 +08:00
|
|
|
int sysctl_checksum;
|
2008-10-08 17:35:08 +08:00
|
|
|
unsigned int sysctl_log_invalid; /* Log invalid packets */
|
2008-10-08 17:35:08 +08:00
|
|
|
#ifdef CONFIG_SYSCTL
|
|
|
|
struct ctl_table_header *sysctl_header;
|
2008-10-08 17:35:09 +08:00
|
|
|
struct ctl_table_header *acct_sysctl_header;
|
2009-06-13 18:26:29 +08:00
|
|
|
struct ctl_table_header *event_sysctl_header;
|
2008-10-08 17:35:07 +08:00
|
|
|
#endif
|
2008-10-08 17:35:03 +08:00
|
|
|
int hash_vmalloc;
|
2008-10-08 17:35:03 +08:00
|
|
|
int expect_vmalloc;
|
2008-10-08 17:35:02 +08:00
|
|
|
};
|
|
|
|
#endif
|