aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
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
commita2df1648ba615dd5908e9a1fa7b2f133fa302487 (patch)
treea70a2424cc660903fbcb8120344d80e62df4b0c4 /include/linux
parentaf5d6dc200eb0fcc6fbd3df1ab4d8969004cb37f (diff)
netfilter: xtables: move extension arguments into compound structure (6/6)
This patch does this for target extensions' destroy functions. Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/linux')
-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 8daeb496ba7a..e3b3b669a143 100644
--- a/include/linux/netfilter/x_tables.h
+++ b/include/linux/netfilter/x_tables.h
@@ -251,6 +251,12 @@ struct xt_tgchk_param {
251 unsigned int hook_mask; 251 unsigned int hook_mask;
252}; 252};
253 253
254/* Target destructor parameters */
255struct xt_tgdtor_param {
256 const struct xt_target *target;
257 void *targinfo;
258};
259
254struct xt_match 260struct xt_match
255{ 261{
256 struct list_head list; 262 struct list_head list;
@@ -311,7 +317,7 @@ struct xt_target
311 bool (*checkentry)(const struct xt_tgchk_param *); 317 bool (*checkentry)(const struct xt_tgchk_param *);
312 318
313 /* Called when entry of this type deleted. */ 319 /* Called when entry of this type deleted. */
314 void (*destroy)(const struct xt_target *target, void *targinfo); 320 void (*destroy)(const struct xt_tgdtor_param *);
315 321
316 /* Called when userspace align differs from kernel space one */ 322 /* Called when userspace align differs from kernel space one */
317 void (*compat_from_user)(void *dst, void *src); 323 void (*compat_from_user)(void *dst, void *src);