Searched refs:xfrm_nr (Results 1 – 4 of 4) sorted by relevance
2312 newp->xfrm_nr = old->xfrm_nr; in clone_policy()2317 newp->xfrm_nr*sizeof(struct xfrm_tmpl)); in clone_policy()2375 for (nx = 0, i = 0; i < policy->xfrm_nr; i++) { in xfrm_tmpl_resolve_one()2435 if (cnx + pols[i]->xfrm_nr >= XFRM_MAX_DEPTH) { in xfrm_tmpl_resolve()2688 *num_xfrms = pols[0]->xfrm_nr; in xfrm_expand_policies()2705 (*num_xfrms) += pols[1]->xfrm_nr; in xfrm_expand_policies()3555 int xfrm_nr; in __xfrm_policy_check() local3672 if (ti + pols[pi]->xfrm_nr >= XFRM_MAX_DEPTH) { in __xfrm_policy_check()3676 for (i = 0; i < pols[pi]->xfrm_nr; i++) in __xfrm_policy_check()3679 xfrm_nr = ti; in __xfrm_policy_check()[all …]
1529 xp->xfrm_nr = nr; in copy_templates()1607 pol->xfrm_nr = 0; in copy_from_user_tmpl()1753 if (xp->xfrm_nr == 0) in copy_to_user_tmpl()1756 for (i = 0; i < xp->xfrm_nr; i++) { in copy_to_user_tmpl()1774 sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr, vec); in copy_to_user_tmpl()2459 for (i = 0; i < xp->xfrm_nr; i++, ut++) { in xfrm_add_acquire()3124 + nla_total_size(sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr) in xfrm_acquire_msgsize()3250 + nla_total_size(sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr) in xfrm_polexpire_msgsize()3307 unsigned int len = nla_total_size(sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr); in xfrm_notify_policy()
1918 for (i=0; i<xp->xfrm_nr; i++) { in check_reqid()1951 struct xfrm_tmpl *t = xp->xfrm_vec + xp->xfrm_nr; in parse_ipsecrequest()1954 if (xp->xfrm_nr >= XFRM_MAX_DEPTH) in parse_ipsecrequest()1994 xp->xfrm_nr++; in parse_ipsecrequest()2040 for (i=0; i<xp->xfrm_nr; i++) { in pfkey_xfrm_policy2msg_size()2050 (xp->xfrm_nr * sizeof(struct sadb_x_ipsecrequest)) + in pfkey_xfrm_policy2msg_size()2150 if (xp->xfrm_nr) in pfkey_xfrm_policy2msg()2160 for (i=0; i<xp->xfrm_nr; i++) { in pfkey_xfrm_policy2msg()2334 xp->xfrm_nr = 0; in pfkey_spdadd()3321 xp->xfrm_nr = 0; in pfkey_compile_policy()
528 u8 xfrm_nr; member