diff options
author | Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp> | 2007-07-08 01:25:51 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-11 01:17:35 -0400 |
commit | dacd2a1a5cf621288833aa3c6e815b86a1536538 (patch) | |
tree | c615b95aa1518c6518df35acd481ed4af19acd61 /include/net | |
parent | ff09b7493c8f433d3ffd6a31ad58d190f82ef0c5 (diff) |
[NETFILTER]: nf_conntrack: remove old memory allocator of conntrack
Now memory space for help and NAT are allocated by extension
infrastructure.
Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/netfilter/nf_conntrack.h | 14 | ||||
-rw-r--r-- | include/net/netfilter/nf_conntrack_l3proto.h | 2 |
2 files changed, 0 insertions, 16 deletions
diff --git a/include/net/netfilter/nf_conntrack.h b/include/net/netfilter/nf_conntrack.h index b2083d386f33..71386e5c4bb7 100644 --- a/include/net/netfilter/nf_conntrack.h +++ b/include/net/netfilter/nf_conntrack.h | |||
@@ -117,9 +117,6 @@ struct nf_conn | |||
117 | /* Unique ID that identifies this conntrack*/ | 117 | /* Unique ID that identifies this conntrack*/ |
118 | unsigned int id; | 118 | unsigned int id; |
119 | 119 | ||
120 | /* features - nat, helper, ... used by allocating system */ | ||
121 | u_int32_t features; | ||
122 | |||
123 | #if defined(CONFIG_NF_CONNTRACK_MARK) | 120 | #if defined(CONFIG_NF_CONNTRACK_MARK) |
124 | u_int32_t mark; | 121 | u_int32_t mark; |
125 | #endif | 122 | #endif |
@@ -133,9 +130,6 @@ struct nf_conn | |||
133 | 130 | ||
134 | /* Extensions */ | 131 | /* Extensions */ |
135 | struct nf_ct_ext *ext; | 132 | struct nf_ct_ext *ext; |
136 | |||
137 | /* features dynamically at the end: helper, nat (both optional) */ | ||
138 | char data[0]; | ||
139 | }; | 133 | }; |
140 | 134 | ||
141 | static inline struct nf_conn * | 135 | static inline struct nf_conn * |
@@ -265,14 +259,6 @@ do { \ | |||
265 | local_bh_enable(); \ | 259 | local_bh_enable(); \ |
266 | } while (0) | 260 | } while (0) |
267 | 261 | ||
268 | /* no helper, no nat */ | ||
269 | #define NF_CT_F_BASIC 0 | ||
270 | /* for helper */ | ||
271 | #define NF_CT_F_HELP 1 | ||
272 | /* for nat. */ | ||
273 | #define NF_CT_F_NAT 2 | ||
274 | #define NF_CT_F_NUM 4 | ||
275 | |||
276 | extern int | 262 | extern int |
277 | nf_conntrack_register_cache(u_int32_t features, const char *name, size_t size); | 263 | nf_conntrack_register_cache(u_int32_t features, const char *name, size_t size); |
278 | extern void | 264 | extern void |
diff --git a/include/net/netfilter/nf_conntrack_l3proto.h b/include/net/netfilter/nf_conntrack_l3proto.h index 96a58d8e1d3f..890752d7f673 100644 --- a/include/net/netfilter/nf_conntrack_l3proto.h +++ b/include/net/netfilter/nf_conntrack_l3proto.h | |||
@@ -64,8 +64,6 @@ struct nf_conntrack_l3proto | |||
64 | int (*prepare)(struct sk_buff **pskb, unsigned int hooknum, | 64 | int (*prepare)(struct sk_buff **pskb, unsigned int hooknum, |
65 | unsigned int *dataoff, u_int8_t *protonum); | 65 | unsigned int *dataoff, u_int8_t *protonum); |
66 | 66 | ||
67 | u_int32_t (*get_features)(const struct nf_conntrack_tuple *tuple); | ||
68 | |||
69 | int (*tuple_to_nfattr)(struct sk_buff *skb, | 67 | int (*tuple_to_nfattr)(struct sk_buff *skb, |
70 | const struct nf_conntrack_tuple *t); | 68 | const struct nf_conntrack_tuple *t); |
71 | 69 | ||