]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
compat_xtables: improve memory usage in struct xtnu_{match,target}
authorJan Engelhardt <jengelh@medozas.de>
Thu, 13 May 2010 13:51:54 +0000 (15:51 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Thu, 13 May 2010 13:51:54 +0000 (15:51 +0200)
extensions/compat_xtnu.h

index 89ca7152d807999648d60618f0538290b3cbc4d0..71c74078c535048da982c0ab30db263b22a777de 100644 (file)
@@ -84,6 +84,7 @@ struct xt_tgdtor_param {
 struct xtnu_match {
        struct list_head list;
        char name[XT_FUNCTION_MAXNAMELEN - 1 - sizeof(void *)];
+       uint8_t revision;
        bool (*match)(const struct sk_buff *, const struct xt_match_param *);
        int (*checkentry)(const struct xt_mtchk_param *);
        void (*destroy)(const struct xt_mtdtor_param *);
@@ -91,7 +92,6 @@ struct xtnu_match {
        const char *table;
        unsigned int matchsize, hooks;
        unsigned short proto, family;
-       uint8_t revision;
 
        void *__compat_match;
 };
@@ -99,6 +99,7 @@ struct xtnu_match {
 struct xtnu_target {
        struct list_head list;
        char name[XT_FUNCTION_MAXNAMELEN - 1 - sizeof(void *)];
+       uint8_t revision;
        unsigned int (*target)(struct sk_buff **,
                const struct xt_target_param *);
        int (*checkentry)(const struct xt_tgchk_param *);
@@ -107,7 +108,6 @@ struct xtnu_target {
        const char *table;
        unsigned int targetsize, hooks;
        unsigned short proto, family;
-       uint8_t revision;
 
        void *__compat_target;
 };