]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - include/linux/netfilter/x_tables.h
netfilter: xtables: move extension arguments into compound structure (3/6)
[mirror_ubuntu-hirsute-kernel.git] / include / linux / netfilter / x_tables.h
index 763a704ce83fdf7a23e712cb162de97799caeb36..c79c88380149e834f628740fdfadeb5b27d24855 100644 (file)
@@ -212,6 +212,12 @@ struct xt_mtchk_param {
        unsigned int hook_mask;
 };
 
+/* Match destructor parameters */
+struct xt_mtdtor_param {
+       const struct xt_match *match;
+       void *matchinfo;
+};
+
 struct xt_match
 {
        struct list_head list;
@@ -230,7 +236,7 @@ struct xt_match
        bool (*checkentry)(const struct xt_mtchk_param *);
 
        /* Called when entry of this type deleted. */
-       void (*destroy)(const struct xt_match *match, void *matchinfo);
+       void (*destroy)(const struct xt_mtdtor_param *);
 
        /* Called when userspace align differs from kernel space one */
        void (*compat_from_user)(void *dst, void *src);