The x_tables kernel part already does calculate it.
.family = NFPROTO_IPV4,
.proto = IPPROTO_UDP,
.match = dhcpmac_mt,
- .matchsize = XT_ALIGN(sizeof(struct dhcpmac_info)),
+ .matchsize = sizeof(struct dhcpmac_info),
.me = THIS_MODULE,
};
.family = NFPROTO_IPV4,
.table = "mangle",
.target = ipmark_tg4,
- .targetsize = XT_ALIGN(sizeof(struct xt_ipmark_tginfo)),
+ .targetsize = sizeof(struct xt_ipmark_tginfo),
.me = THIS_MODULE,
},
{
.family = NFPROTO_IPV6,
.table = "mangle",
.target = ipmark_tg6,
- .targetsize = XT_ALIGN(sizeof(struct xt_ipmark_tginfo)),
+ .targetsize = sizeof(struct xt_ipmark_tginfo),
.me = THIS_MODULE,
},
};
.name = "condition",
.revision = 1,
.family = NFPROTO_IPV4,
- .matchsize = XT_ALIGN(sizeof(struct xt_condition_mtinfo)),
+ .matchsize = sizeof(struct xt_condition_mtinfo),
.match = condition_mt,
.checkentry = condition_mt_check,
.destroy = condition_mt_destroy,
.name = "condition",
.revision = 1,
.family = NFPROTO_IPV6,
- .matchsize = XT_ALIGN(sizeof(struct xt_condition_mtinfo)),
+ .matchsize = sizeof(struct xt_condition_mtinfo),
.match = condition_mt,
.checkentry = condition_mt_check,
.destroy = condition_mt_destroy,
.family = NFPROTO_IPV4,
.match = fuzzy_mt,
.checkentry = fuzzy_mt_check,
- .matchsize = XT_ALIGN(sizeof(struct xt_fuzzy_mtinfo)),
+ .matchsize = sizeof(struct xt_fuzzy_mtinfo),
.me = THIS_MODULE,
},
{
.family = NFPROTO_IPV6,
.match = fuzzy_mt,
.checkentry = fuzzy_mt_check,
- .matchsize = XT_ALIGN(sizeof(struct xt_fuzzy_mtinfo)),
+ .matchsize = sizeof(struct xt_fuzzy_mtinfo),
.me = THIS_MODULE,
},
};
.name = "iface",
.revision = 0,
.family = NFPROTO_IPV4,
- .matchsize = XT_ALIGN(sizeof(struct xt_iface_mtinfo)),
+ .matchsize = sizeof(struct xt_iface_mtinfo),
.match = xt_iface_mt,
.me = THIS_MODULE,
},
.name = "iface",
.revision = 0,
.family = NFPROTO_IPV6,
- .matchsize = XT_ALIGN(sizeof(struct xt_iface_mtinfo)),
+ .matchsize = sizeof(struct xt_iface_mtinfo),
.match = xt_iface_mt,
.me = THIS_MODULE,
},
.revision = 1,
.family = NFPROTO_IPV4,
.match = ipv4options_mt,
- .matchsize = XT_ALIGN(sizeof(struct xt_ipv4options_mtinfo1)),
+ .matchsize = sizeof(struct xt_ipv4options_mtinfo1),
.me = THIS_MODULE,
};