diff options
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/netfilter/nf_conntrack_l4proto.h | 11 | ||||
-rw-r--r-- | include/net/netns/conntrack.h | 12 |
2 files changed, 21 insertions, 2 deletions
diff --git a/include/net/netfilter/nf_conntrack_l4proto.h b/include/net/netfilter/nf_conntrack_l4proto.h index 3b572bb20aa2..d621c91de5c8 100644 --- a/include/net/netfilter/nf_conntrack_l4proto.h +++ b/include/net/netfilter/nf_conntrack_l4proto.h | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/netlink.h> | 12 | #include <linux/netlink.h> |
13 | #include <net/netlink.h> | 13 | #include <net/netlink.h> |
14 | #include <net/netfilter/nf_conntrack.h> | 14 | #include <net/netfilter/nf_conntrack.h> |
15 | #include <net/netns/generic.h> | ||
15 | 16 | ||
16 | struct seq_file; | 17 | struct seq_file; |
17 | 18 | ||
@@ -103,6 +104,10 @@ struct nf_conntrack_l4proto { | |||
103 | struct ctl_table *ctl_compat_table; | 104 | struct ctl_table *ctl_compat_table; |
104 | #endif | 105 | #endif |
105 | #endif | 106 | #endif |
107 | int *net_id; | ||
108 | /* Init l4proto pernet data */ | ||
109 | int (*init_net)(struct net *net); | ||
110 | |||
106 | /* Protocol name */ | 111 | /* Protocol name */ |
107 | const char *name; | 112 | const char *name; |
108 | 113 | ||
@@ -123,8 +128,10 @@ nf_ct_l4proto_find_get(u_int16_t l3proto, u_int8_t l4proto); | |||
123 | extern void nf_ct_l4proto_put(struct nf_conntrack_l4proto *p); | 128 | extern void nf_ct_l4proto_put(struct nf_conntrack_l4proto *p); |
124 | 129 | ||
125 | /* Protocol registration. */ | 130 | /* Protocol registration. */ |
126 | extern int nf_conntrack_l4proto_register(struct nf_conntrack_l4proto *proto); | 131 | extern int nf_conntrack_l4proto_register(struct net *net, |
127 | extern void nf_conntrack_l4proto_unregister(struct nf_conntrack_l4proto *proto); | 132 | struct nf_conntrack_l4proto *proto); |
133 | extern void nf_conntrack_l4proto_unregister(struct net *net, | ||
134 | struct nf_conntrack_l4proto *proto); | ||
128 | 135 | ||
129 | /* Generic netlink helpers */ | 136 | /* Generic netlink helpers */ |
130 | extern int nf_ct_port_tuple_to_nlattr(struct sk_buff *skb, | 137 | extern int nf_ct_port_tuple_to_nlattr(struct sk_buff *skb, |
diff --git a/include/net/netns/conntrack.h b/include/net/netns/conntrack.h index a053a19870cf..1f53038b0d1b 100644 --- a/include/net/netns/conntrack.h +++ b/include/net/netns/conntrack.h | |||
@@ -8,6 +8,18 @@ | |||
8 | struct ctl_table_header; | 8 | struct ctl_table_header; |
9 | struct nf_conntrack_ecache; | 9 | struct nf_conntrack_ecache; |
10 | 10 | ||
11 | struct nf_proto_net { | ||
12 | #ifdef CONFIG_SYSCTL | ||
13 | struct ctl_table_header *ctl_table_header; | ||
14 | struct ctl_table *ctl_table; | ||
15 | #ifdef CONFIG_NF_CONNTRACK_PROC_COMPAT | ||
16 | struct ctl_table_header *ctl_compat_header; | ||
17 | struct ctl_table *ctl_compat_table; | ||
18 | #endif | ||
19 | #endif | ||
20 | unsigned int users; | ||
21 | }; | ||
22 | |||
11 | struct netns_ct { | 23 | struct netns_ct { |
12 | atomic_t count; | 24 | atomic_t count; |
13 | unsigned int expect_count; | 25 | unsigned int expect_count; |