aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2008-10-08 05:35:19 -0400
committerPatrick McHardy <kaber@trash.net>2008-10-08 05:35:19 -0400
commit6be3d8598e883fb632edf059ba2f8d1b9f4da138 (patch)
treeef8b3a40168b0f50079d05bd36b7b6f1c4fed9dd /include
parent9b4fce7a3508a9776534188b6065b206a9608ccf (diff)
netfilter: xtables: move extension arguments into compound structure (3/6)
This patch does this for match extensions' destroy functions. Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netfilter/x_tables.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/netfilter/x_tables.h b/include/linux/netfilter/x_tables.h
index 763a704ce83f..c79c88380149 100644
--- a/include/linux/netfilter/x_tables.h
+++ b/include/linux/netfilter/x_tables.h
@@ -212,6 +212,12 @@ struct xt_mtchk_param {
212 unsigned int hook_mask; 212 unsigned int hook_mask;
213}; 213};
214 214
215/* Match destructor parameters */
216struct xt_mtdtor_param {
217 const struct xt_match *match;
218 void *matchinfo;
219};
220
215struct xt_match 221struct xt_match
216{ 222{
217 struct list_head list; 223 struct list_head list;
@@ -230,7 +236,7 @@ struct xt_match
230 bool (*checkentry)(const struct xt_mtchk_param *); 236 bool (*checkentry)(const struct xt_mtchk_param *);
231 237
232 /* Called when entry of this type deleted. */ 238 /* Called when entry of this type deleted. */
233 void (*destroy)(const struct xt_match *match, void *matchinfo); 239 void (*destroy)(const struct xt_mtdtor_param *);
234 240
235 /* Called when userspace align differs from kernel space one */ 241 /* Called when userspace align differs from kernel space one */
236 void (*compat_from_user)(void *dst, void *src); 242 void (*compat_from_user)(void *dst, void *src);