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