diff --git a/doc/changelog.txt b/doc/changelog.txt index 18e74ee..a292c7d 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -1,5 +1,8 @@ +- fuzzy: need to account for kernel-level modified variables in .userspacesize + + Xtables-addons 1.13 (March 23 2009) =================================== - added a reworked ipv4options match diff --git a/extensions/libxt_fuzzy.c b/extensions/libxt_fuzzy.c index df55604..c2b96fe 100644 --- a/extensions/libxt_fuzzy.c +++ b/extensions/libxt_fuzzy.c @@ -9,6 +9,7 @@ */ #include #include +#include #include #include #include @@ -102,7 +103,7 @@ static struct xtables_match fuzzy_mt_reg = { .name = "fuzzy", .version = XTABLES_VERSION, .size = XT_ALIGN(sizeof(struct xt_fuzzy_mtinfo)), - .userspacesize = XT_ALIGN(sizeof(struct xt_fuzzy_mtinfo)), + .userspacesize = offsetof(struct xt_fuzzy_mtinfo, packets_total), .help = fuzzy_mt_help, .init = fuzzy_mt_init, .parse = fuzzy_mt_parse,