Home
last modified time | relevance | path

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

/Linux-v4.19/net/netfilter/
Dnft_compat.c204 pad = XT_ALIGN(t->targetsize) - t->targetsize; in target_compat_from_user()
245 size_t size = XT_ALIGN(nla_len(tb[NFTA_TARGET_INFO])); in nft_target_init()
300 nla_put(skb, NFTA_TARGET_INFO, XT_ALIGN(target->targetsize), info)) in nft_target_dump()
432 pad = XT_ALIGN(m->matchsize) - m->matchsize; in match_compat_from_user()
444 size_t size = XT_ALIGN(nla_len(tb[NFTA_MATCH_INFO])); in __nft_match_init()
485 priv->info = kmalloc(XT_ALIGN(m->matchsize), GFP_KERNEL); in nft_match_large_init()
535 nla_put(skb, NFTA_MATCH_INFO, XT_ALIGN(match->matchsize), info)) in __nft_match_dump()
777 matchsize = NFT_EXPR_SIZE(XT_ALIGN(match->matchsize)); in nft_match_select_ops()
874 nft_target->ops.size = NFT_EXPR_SIZE(XT_ALIGN(target->targetsize)); in nft_target_select_ops()
Dxt_l2tp.c322 .matchsize = XT_ALIGN(sizeof(struct xt_l2tp_info)),
336 .matchsize = XT_ALIGN(sizeof(struct xt_l2tp_info)),
Dx_tables.c315 XT_ALIGN(K->u.kernel.TYPE->TYPE##size))
468 if (XT_ALIGN(par->match->matchsize) != size && in xt_check_match()
477 XT_ALIGN(par->match->matchsize), size); in xt_check_match()
730 return XT_ALIGN(match->matchsize) - COMPAT_XT_ALIGN(csize); in xt_compat_match_offset()
749 pad = XT_ALIGN(match->matchsize) - match->matchsize; in xt_compat_match_from_user()
924 if (XT_ALIGN(target_offset + sizeof(*st)) != next_offset) in xt_check_entry_offsets()
991 if (XT_ALIGN(par->target->targetsize) != size) { in xt_check_target()
995 XT_ALIGN(par->target->targetsize), size); in xt_check_target()
1113 return XT_ALIGN(target->targetsize) - COMPAT_XT_ALIGN(csize); in xt_compat_target_offset()
1132 pad = XT_ALIGN(target->targetsize) - target->targetsize; in xt_compat_target_from_user()
Dxt_ipvs.c175 .matchsize = XT_ALIGN(sizeof(struct xt_ipvs_mtinfo)),
/Linux-v4.19/include/uapi/linux/netfilter/
Dx_tables.h60 .target_size = XT_ALIGN(__size), \
100 #define XT_ALIGN(s) __ALIGN_KERNEL((s), __alignof__(struct _xt_align)) macro
/Linux-v4.19/net/sched/
Dem_ipt.c138 mdata_len = XT_ALIGN(nla_len(tb[TCA_EM_IPT_MATCH_DATA])); in em_ipt_change()
/Linux-v4.19/net/bridge/netfilter/
Debtables.c1376 XT_ALIGN(datasize))) in ebt_obj_to_user()
1645 return XT_ALIGN(userlen) - COMPAT_XT_ALIGN(userlen); in ebt_compat_match_offset()
2019 pad = XT_ALIGN(size_kern) - size_kern; in compat_mtw_from_user()