Home
last modified time | relevance | path

Searched refs:XT_ALIGN (Results 1 – 6 of 6) sorted by relevance

/linux-4.1.27/net/netfilter/
Dnft_compat.c171 pad = XT_ALIGN(t->targetsize) - t->targetsize; in target_compat_from_user()
212 size_t size = XT_ALIGN(nla_len(tb[NFTA_TARGET_INFO])); in nft_target_init()
272 nla_put(skb, NFTA_TARGET_INFO, XT_ALIGN(target->targetsize), info)) in nft_target_dump()
387 pad = XT_ALIGN(m->matchsize) - m->matchsize; in match_compat_from_user()
399 size_t size = XT_ALIGN(nla_len(tb[NFTA_MATCH_INFO])); in nft_match_init()
453 nla_put(skb, NFTA_MATCH_INFO, XT_ALIGN(match->matchsize), info)) in nft_match_dump()
667 nft_match->ops.size = NFT_EXPR_SIZE(XT_ALIGN(match->matchsize)); in nft_match_select_ops()
747 nft_target->ops.size = NFT_EXPR_SIZE(XT_ALIGN(target->targetsize)); in nft_target_select_ops()
Dx_tables.c371 if (XT_ALIGN(par->match->matchsize) != size && in xt_check_match()
381 XT_ALIGN(par->match->matchsize), size); in xt_check_match()
486 return XT_ALIGN(match->matchsize) - COMPAT_XT_ALIGN(csize); in xt_compat_match_offset()
504 pad = XT_ALIGN(match->matchsize) - match->matchsize; in xt_compat_match_from_user()
551 if (XT_ALIGN(par->target->targetsize) != size) { in xt_check_target()
556 XT_ALIGN(par->target->targetsize), size); in xt_check_target()
600 return XT_ALIGN(target->targetsize) - COMPAT_XT_ALIGN(csize); in xt_compat_target_offset()
618 pad = XT_ALIGN(target->targetsize) - target->targetsize; in xt_compat_target_from_user()
Dxt_l2tp.c318 .matchsize = XT_ALIGN(sizeof(struct xt_l2tp_info)),
332 .matchsize = XT_ALIGN(sizeof(struct xt_l2tp_info)),
Dxt_ipvs.c173 .matchsize = XT_ALIGN(sizeof(struct xt_ipvs_mtinfo)),
/linux-4.1.27/include/uapi/linux/netfilter/
Dx_tables.h59 .target_size = XT_ALIGN(__size), \
99 #define XT_ALIGN(s) __ALIGN_KERNEL((s), __alignof__(struct _xt_align)) macro
/linux-4.1.27/net/bridge/netfilter/
Debtables.c1587 BUILD_BUG_ON(XT_ALIGN(sizeof(struct ebt_entry_match)) < in ebt_compat_entry_padsize()
1589 return (int) XT_ALIGN(sizeof(struct ebt_entry_match)) - in ebt_compat_entry_padsize()
1603 return XT_ALIGN(userlen) - COMPAT_XT_ALIGN(userlen); in ebt_compat_match_offset()
1957 pad = XT_ALIGN(size_kern) - size_kern; in compat_mtw_from_user()