From: Jan Engelhardt Date: Thu, 13 May 2010 13:51:54 +0000 (+0200) Subject: compat_xtables: improve memory usage in struct xtnu_{match,target} X-Git-Tag: v1.27~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca894d668758089578c1eba9baef3bd0ea7986ae;p=thirdparty%2Fxtables-addons.git compat_xtables: improve memory usage in struct xtnu_{match,target} --- diff --git a/extensions/compat_xtnu.h b/extensions/compat_xtnu.h index 89ca715..71c7407 100644 --- a/extensions/compat_xtnu.h +++ b/extensions/compat_xtnu.h @@ -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; };