Searched refs:XT_ALIGN (Results 1 – 6 of 6) sorted by relevance
/linux-4.4.14/net/netfilter/ |
D | nft_compat.c | 172 pad = XT_ALIGN(t->targetsize) - t->targetsize; in target_compat_from_user() 213 size_t size = XT_ALIGN(nla_len(tb[NFTA_TARGET_INFO])); in nft_target_init() 273 nla_put(skb, NFTA_TARGET_INFO, XT_ALIGN(target->targetsize), info)) in nft_target_dump() 389 pad = XT_ALIGN(m->matchsize) - m->matchsize; in match_compat_from_user() 401 size_t size = XT_ALIGN(nla_len(tb[NFTA_MATCH_INFO])); in nft_match_init() 455 nla_put(skb, NFTA_MATCH_INFO, XT_ALIGN(match->matchsize), info)) in nft_match_dump() 669 nft_match->ops.size = NFT_EXPR_SIZE(XT_ALIGN(match->matchsize)); in nft_match_select_ops() 749 nft_target->ops.size = NFT_EXPR_SIZE(XT_ALIGN(target->targetsize)); in nft_target_select_ops()
|
D | x_tables.c | 368 if (XT_ALIGN(par->match->matchsize) != size && in xt_check_match() 378 XT_ALIGN(par->match->matchsize), size); in xt_check_match() 524 return XT_ALIGN(match->matchsize) - COMPAT_XT_ALIGN(csize); in xt_compat_match_offset() 543 pad = XT_ALIGN(match->matchsize) - match->matchsize; in xt_compat_match_from_user() 696 XT_ALIGN(target_offset + sizeof(struct xt_standard_target)) != next_offset) in xt_check_entry_offsets() 709 if (XT_ALIGN(par->target->targetsize) != size) { in xt_check_target() 714 XT_ALIGN(par->target->targetsize), size); in xt_check_target() 832 return XT_ALIGN(target->targetsize) - COMPAT_XT_ALIGN(csize); in xt_compat_target_offset() 851 pad = XT_ALIGN(target->targetsize) - target->targetsize; in xt_compat_target_from_user()
|
D | xt_l2tp.c | 318 .matchsize = XT_ALIGN(sizeof(struct xt_l2tp_info)), 332 .matchsize = XT_ALIGN(sizeof(struct xt_l2tp_info)),
|
D | xt_ipvs.c | 174 .matchsize = XT_ALIGN(sizeof(struct xt_ipvs_mtinfo)),
|
/linux-4.4.14/include/uapi/linux/netfilter/ |
D | x_tables.h | 59 .target_size = XT_ALIGN(__size), \ 99 #define XT_ALIGN(s) __ALIGN_KERNEL((s), __alignof__(struct _xt_align)) macro
|
/linux-4.4.14/net/bridge/netfilter/ |
D | ebtables.c | 1589 BUILD_BUG_ON(XT_ALIGN(sizeof(struct ebt_entry_match)) < in ebt_compat_entry_padsize() 1591 return (int) XT_ALIGN(sizeof(struct ebt_entry_match)) - in ebt_compat_entry_padsize() 1605 return XT_ALIGN(userlen) - COMPAT_XT_ALIGN(userlen); in ebt_compat_match_offset() 1959 pad = XT_ALIGN(size_kern) - size_kern; in compat_mtw_from_user()
|