Searched refs:xfrm_nr (Results 1 – 4 of 4) sorted by relevance
2309 newp->xfrm_nr = old->xfrm_nr; in clone_policy()2314 newp->xfrm_nr*sizeof(struct xfrm_tmpl)); in clone_policy()2372 for (nx = 0, i = 0; i < policy->xfrm_nr; i++) { in xfrm_tmpl_resolve_one()2432 if (cnx + pols[i]->xfrm_nr >= XFRM_MAX_DEPTH) { in xfrm_tmpl_resolve()2685 *num_xfrms = pols[0]->xfrm_nr; in xfrm_expand_policies()2702 (*num_xfrms) += pols[1]->xfrm_nr; in xfrm_expand_policies()3511 int xfrm_nr; in __xfrm_policy_check() local3628 if (ti + pols[pi]->xfrm_nr >= XFRM_MAX_DEPTH) { in __xfrm_policy_check()3632 for (i = 0; i < pols[pi]->xfrm_nr; i++) in __xfrm_policy_check()3635 xfrm_nr = ti; in __xfrm_policy_check()[all …]
1688 xp->xfrm_nr = nr; in copy_templates()1777 pol->xfrm_nr = 0; in copy_from_user_tmpl()1929 if (xp->xfrm_nr == 0) in copy_to_user_tmpl()1932 for (i = 0; i < xp->xfrm_nr; i++) { in copy_to_user_tmpl()1950 sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr, vec); in copy_to_user_tmpl()2641 for (i = 0; i < xp->xfrm_nr; i++, ut++) { in xfrm_add_acquire()3307 + nla_total_size(sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr) in xfrm_acquire_msgsize()3433 + nla_total_size(sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr) in xfrm_polexpire_msgsize()3490 unsigned int len = nla_total_size(sizeof(struct xfrm_user_tmpl) * xp->xfrm_nr); in xfrm_notify_policy()
1914 for (i=0; i<xp->xfrm_nr; i++) { in check_reqid()1946 struct xfrm_tmpl *t = xp->xfrm_vec + xp->xfrm_nr; in parse_ipsecrequest()1949 if (xp->xfrm_nr >= XFRM_MAX_DEPTH) in parse_ipsecrequest()1986 xp->xfrm_nr++; in parse_ipsecrequest()2032 for (i=0; i<xp->xfrm_nr; i++) { in pfkey_xfrm_policy2msg_size()2042 (xp->xfrm_nr * sizeof(struct sadb_x_ipsecrequest)) + in pfkey_xfrm_policy2msg_size()2142 if (xp->xfrm_nr) in pfkey_xfrm_policy2msg()2152 for (i=0; i<xp->xfrm_nr; i++) { in pfkey_xfrm_policy2msg()2326 xp->xfrm_nr = 0; in pfkey_spdadd()3313 xp->xfrm_nr = 0; in pfkey_compile_policy()
531 u8 xfrm_nr; member