diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2008-10-08 05:35:19 -0400 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-10-08 05:35:19 -0400 |
commit | 6be3d8598e883fb632edf059ba2f8d1b9f4da138 (patch) | |
tree | ef8b3a40168b0f50079d05bd36b7b6f1c4fed9dd /include | |
parent | 9b4fce7a3508a9776534188b6065b206a9608ccf (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.h | 8 |
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 */ | ||
216 | struct xt_mtdtor_param { | ||
217 | const struct xt_match *match; | ||
218 | void *matchinfo; | ||
219 | }; | ||
220 | |||
215 | struct xt_match | 221 | struct 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); |